diff --git a/flight/modules/Airspeed/airspeedalarm.c b/flight/modules/Airspeed/airspeedalarm.c index f490adc3a..c14b62ca1 100644 --- a/flight/modules/Airspeed/airspeedalarm.c +++ b/flight/modules/Airspeed/airspeedalarm.c @@ -49,19 +49,16 @@ static SystemAlarmsAlarmOptions severitySet = SYSTEMALARMS_ALARM_UNINITIALISED; */ bool AirspeedAlarm(SystemAlarmsAlarmOptions severity) { - if( severity == severitySet ){ + if (severity == severitySet) { return false; } - + severitySet = severity; - - return ( AlarmsSet(SYSTEMALARMS_ALARM_AIRSPEED, severity) == 0); + + return AlarmsSet(SYSTEMALARMS_ALARM_AIRSPEED, severity) == 0; } - - - /** * @} * @} diff --git a/flight/modules/Airspeed/baro_airspeed_ms4525do.c b/flight/modules/Airspeed/baro_airspeed_ms4525do.c index 5db4dfa50..86091ff6f 100644 --- a/flight/modules/Airspeed/baro_airspeed_ms4525do.c +++ b/flight/modules/Airspeed/baro_airspeed_ms4525do.c @@ -73,7 +73,7 @@ void baro_airspeedGetMS4525DO(AirspeedSensorData *airspeedSensor, AirspeedSettin if (retVal != 0) { AirspeedAlarm(SYSTEMALARMS_ALARM_ERROR); - + return; }