Plane: use should_log() for more msgs

This commit is contained in:
Andrew Tridgell 2014-03-19 13:42:15 +11:00
parent 3d167b5420
commit ce3f40b095
2 changed files with 2 additions and 2 deletions

View File

@ -1046,7 +1046,7 @@ static void update_GPS_50Hz(void)
g_gps2->update();
if (g_gps2->last_message_time_ms() != last_gps2_reading) {
last_gps2_reading = g_gps2->last_message_time_ms();
if (g.log_bitmask & MASK_LOG_GPS) {
if (should_log(MASK_LOG_GPS)) {
DataFlash.Log_Write_GPS2(g_gps2);
}
}

View File

@ -24,7 +24,7 @@ static bool
start_command(const AP_Mission::Mission_Command& cmd)
{
// log when new commands start
if (g.log_bitmask & MASK_LOG_CMD) {
if (should_log(MASK_LOG_CMD)) {
Log_Write_Cmd(cmd);
}