Skip to content

Commit

Permalink
Removed Debug Message
Browse files Browse the repository at this point in the history
  • Loading branch information
ogruetzmann committed Apr 19, 2020
1 parent 97411ac commit e731c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ModeS/ModeS2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ void CModeS::OnTimer(int Counter)
if (fUpdateString.valid() && fUpdateString.wait_for(0ms) == future_status::ready)
DoInitialLoad(fUpdateString);

if (ControllerMyself().IsValid() && ControllerMyself().IsController())
if (!(Counter % 5) && ControllerMyself().IsValid() && ControllerMyself().IsController())
AutoAssignMSCC();
}

Expand Down Expand Up @@ -162,8 +162,8 @@ void CModeS::AutoAssignMSCC()
FlightPlan.GetControllerAssignedData().SetSquawk(::mode_s_code);

// Debug message, to be removed
string message { "Code 1000 assigned to " + string { FlightPlan.GetCallsign() } };
DisplayUserMessage("Mode S", "Debug", message.c_str(), true, false, false, false, false);
//string message { "Code 1000 assigned to " + string { FlightPlan.GetCallsign() } };
//DisplayUserMessage("Mode S", "Debug", message.c_str(), true, false, false, false, false);
}
}
}
Expand Down

0 comments on commit e731c0a

Please sign in to comment.