From 26a3860af27be3863c0112579e2686000d235712 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 2 Nov 2013 10:40:17 +1100 Subject: [PATCH] Plane: fixed PM message --- ArduPlane/ArduPlane.pde | 2 +- ArduPlane/Log.pde | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduPlane/ArduPlane.pde b/ArduPlane/ArduPlane.pde index 519c24c768..daa8cdf0bb 100644 --- a/ArduPlane/ArduPlane.pde +++ b/ArduPlane/ArduPlane.pde @@ -954,9 +954,9 @@ static void one_second_loop() if (scheduler.debug() != 0) { hal.console->printf_P(PSTR("G_Dt_max=%lu\n"), (unsigned long)G_Dt_max); } - G_Dt_max = 0; if (g.log_bitmask & MASK_LOG_PM) Log_Write_Performance(); + G_Dt_max = 0; resetPerfData(); } diff --git a/ArduPlane/Log.pde b/ArduPlane/Log.pde index af3db8f7ac..23da7ee935 100644 --- a/ArduPlane/Log.pde +++ b/ArduPlane/Log.pde @@ -446,7 +446,7 @@ static const struct LogStructure log_structure[] PROGMEM = { { LOG_ATTITUDE_MSG, sizeof(log_Attitude), "ATT", "ccC", "Roll,Pitch,Yaw" }, { LOG_PERFORMANCE_MSG, sizeof(log_Performance), - "PM", "IHIBBBhhhhB", "LTime,MLC,gDt,RNCnt,RNBl,GPScnt,GDx,GDy,GDz,I2CErr" }, + "PM", "IHIBBBhhhB", "LTime,MLC,gDt,RNCnt,RNBl,GPScnt,GDx,GDy,GDz,I2CErr" }, { LOG_CMD_MSG, sizeof(log_Cmd), "CMD", "BBBBBeLL", "CTot,CNum,CId,COpt,Prm1,Alt,Lat,Lng" }, { LOG_CAMERA_MSG, sizeof(log_Camera),