mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-02-18 08:54:15 +01:00
Updated Alarms.c Modified flight alarm code to NOT set SystemAlarms to an "Uninitialised" value on startup.
This allows the UAVObjectGenerator generated code to set the default values. git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@2301 ebee16cc-31ac-478f-84a7-5cbb03baadba
This commit is contained in:
parent
2b0c75e46d
commit
2f38fe2269
@ -46,8 +46,9 @@ static int32_t hasSeverity(SystemAlarmsAlarmOptions severity);
|
|||||||
int32_t AlarmsInitialize(void)
|
int32_t AlarmsInitialize(void)
|
||||||
{
|
{
|
||||||
lock = xSemaphoreCreateRecursiveMutex();
|
lock = xSemaphoreCreateRecursiveMutex();
|
||||||
|
//do not change the default states of the alarms, let the init code generated by the uavobjectgenerator handle that
|
||||||
//AlarmsClearAll();
|
//AlarmsClearAll();
|
||||||
AlarmsDefaultAll();
|
//AlarmsDefaultAll();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user