Skip to content

Commit

Permalink
fix log error
Browse files Browse the repository at this point in the history
  • Loading branch information
Wei Shuai committed Feb 13, 2019
1 parent 4422a2c commit 603b945
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions core/xtouchdownrecorder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1601,12 +1601,15 @@ static float secondcb(float inElapsedSinceLastCall,
/*-- stop data collection*/
g_info->collect_touchdown_data = FALSE;
g_info->air_counter = 0;
XPLMDebugString("XTouchDownRecorder: touchdown");
XPLMDebugString("XTouchDownRecorder: touchdown\n");
} else if (g_info->ground_counter == (g_info->counterafttd+1)) {
XTDCopy(datacopy, datarealtm);
XPLMDebugString("XTouchDownRecorder: touchdown log");
XPLMDebugString("XTouchDownRecorder: touchdown log\n");
if(analyzeTouchDown(datacopy, tmpbuf, 0, 0, FALSE)){
write_log_file_async();
} else {
sprintf(tmpbuf, "XTouchDownRecorder: touchdown miss counter=%d\n", g_info->counterafttd);
XPLMDebugString(tmpbuf);
}
}
} else {
Expand Down

0 comments on commit 603b945

Please sign in to comment.