mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-886 Fixes to styles
+review OPReview-430
This commit is contained in:
parent
13dd1178a8
commit
f30692836a
@ -205,7 +205,7 @@ int32_t AlarmsHasErrors()
|
||||
{
|
||||
return hasSeverity(SYSTEMALARMS_ALARM_ERROR);
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
* Check if there are any alarms with critical or higher severity
|
||||
@ -215,7 +215,7 @@ int32_t AlarmsHasCritical()
|
||||
{
|
||||
return hasSeverity(SYSTEMALARMS_ALARM_CRITICAL);
|
||||
}
|
||||
;
|
||||
|
||||
|
||||
/**
|
||||
* Check if there are any alarms with the given or higher severity
|
||||
|
@ -340,8 +340,8 @@ static void hwSettingsUpdatedCb(UAVObjEvent * ev)
|
||||
HwSettingsData currentHwSettings;
|
||||
HwSettingsGet(¤tHwSettings);
|
||||
// check whether the Hw Configuration has changed from the one used at boot time
|
||||
if(memcmp(&bootHwSettings, ¤tHwSettings, sizeof(HwSettingsData)) != 0){
|
||||
ExtendedAlarmsSet(SYSTEMALARMS_ALARM_BOOTFAULT,SYSTEMALARMS_ALARM_ERROR,BOOTFAULT_STATUS_ERROR_REQUIRE_REBOOT, 0);
|
||||
if (memcmp(&bootHwSettings, ¤tHwSettings, sizeof(HwSettingsData)) != 0) {
|
||||
ExtendedAlarmsSet(SYSTEMALARMS_ALARM_BOOTFAULT, SYSTEMALARMS_ALARM_ERROR, BOOTFAULT_STATUS_ERROR_REQUIRE_REBOOT, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user