mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-26 01:33:56 -04:00
AP_Logger: loosen constraint on failing to log replay block
// things will almost certainly go sour. However, if we are not // logging while disarmed then the EKF can be started and trying // to log things even 'though the backends might be saying "no".
This commit is contained in:
parent
120167f799
commit
5e63ed908e
@ -709,9 +709,10 @@ bool AP_Logger::WriteReplayBlock(uint8_t msg_id, const void *pBuffer, uint16_t s
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL
|
||||||
// failing to log a block means that when we go to replay the log
|
// things will almost certainly go sour. However, if we are not
|
||||||
// things will almost certainly go sour.
|
// logging while disarmed then the EKF can be started and trying
|
||||||
if (!ret) {
|
// to log things even 'though the backends might be saying "no".
|
||||||
|
if (!ret && log_while_disarmed()) {
|
||||||
AP_HAL::panic("Failed to log replay block");
|
AP_HAL::panic("Failed to log replay block");
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user