1
0
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:
Alessio Morale 2013-04-04 20:11:57 +02:00
parent 13dd1178a8
commit f30692836a
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -340,8 +340,8 @@ static void hwSettingsUpdatedCb(UAVObjEvent * ev)
HwSettingsData currentHwSettings;
HwSettingsGet(&currentHwSettings);
// check whether the Hw Configuration has changed from the one used at boot time
if(memcmp(&bootHwSettings, &currentHwSettings, sizeof(HwSettingsData)) != 0){
ExtendedAlarmsSet(SYSTEMALARMS_ALARM_BOOTFAULT,SYSTEMALARMS_ALARM_ERROR,BOOTFAULT_STATUS_ERROR_REQUIRE_REBOOT, 0);
if (memcmp(&bootHwSettings, &currentHwSettings, sizeof(HwSettingsData)) != 0) {
ExtendedAlarmsSet(SYSTEMALARMS_ALARM_BOOTFAULT, SYSTEMALARMS_ALARM_ERROR, BOOTFAULT_STATUS_ERROR_REQUIRE_REBOOT, 0);
}
}