mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-29 14:52:12 +01:00
OP-1325 fix event system warnings to be errors
This commit is contained in:
parent
b7f479cd68
commit
47a891e594
@ -633,7 +633,7 @@ static void updateSystemAlarms()
|
|||||||
UAVObjClearStats();
|
UAVObjClearStats();
|
||||||
EventClearStats();
|
EventClearStats();
|
||||||
if (objStats.eventCallbackErrors > 0 || objStats.eventQueueErrors > 0 || evStats.eventErrors > 0) {
|
if (objStats.eventCallbackErrors > 0 || objStats.eventQueueErrors > 0 || evStats.eventErrors > 0) {
|
||||||
AlarmsSet(SYSTEMALARMS_ALARM_EVENTSYSTEM, SYSTEMALARMS_ALARM_WARNING);
|
AlarmsSet(SYSTEMALARMS_ALARM_EVENTSYSTEM, SYSTEMALARMS_ALARM_ERROR);
|
||||||
} else {
|
} else {
|
||||||
AlarmsClear(SYSTEMALARMS_ALARM_EVENTSYSTEM);
|
AlarmsClear(SYSTEMALARMS_ALARM_EVENTSYSTEM);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user