Copter: don't stop logging on disarm when LOG_WHEN_DISARMED is set

This commit is contained in:
Jonathan Challinger 2014-10-22 01:39:08 -07:00 committed by Randy Mackay
parent a9e6c06f1a
commit ef0b934b10
1 changed files with 3 additions and 1 deletions

View File

@ -637,7 +637,9 @@ static void init_disarm_motors()
Log_Write_Event(DATA_DISARMED);
// suspend logging
DataFlash.EnableWrites(false);
if (!(g.log_bitmask & MASK_LOG_WHEN_DISARMED)) {
DataFlash.EnableWrites(false);
}
// disable gps velocity based centrefugal force compensation
ahrs.set_correct_centrifugal(false);