AP_HAL_ChibiOS: correct logging of MAV_POWER_STATUS_CHANGED

need to exclude the changed flag from the comparison!
This commit is contained in:
Peter Barker 2024-11-14 17:52:40 +11:00 committed by Peter Barker
parent 7ee9a337e1
commit ee09497b64
1 changed files with 1 additions and 1 deletions

View File

@ -894,7 +894,7 @@ void AnalogIn::update_power_flags(void)
#endif
if (_power_flags != 0 &&
_power_flags != flags &&
(_power_flags&~MAV_POWER_STATUS_CHANGED) != (flags&~MAV_POWER_STATUS_CHANGED) &&
hal.util->get_soft_armed()) {
// the power status has changed while armed
flags |= MAV_POWER_STATUS_CHANGED;