mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-01-18 03:52:11 +01:00
OP-1329 Trigger a SensorType change the first time Task runs to set AirspeedSensor UAVO when sensor is None
This commit is contained in:
parent
08dcdefc1f
commit
3a451c9737
@ -60,7 +60,7 @@
|
||||
static xTaskHandle taskHandle;
|
||||
static bool airspeedEnabled = false;
|
||||
static AirspeedSettingsData airspeedSettings;
|
||||
static AirspeedSettingsAirspeedSensorTypeOptions lastAirspeedSensorType = 0;
|
||||
static AirspeedSettingsAirspeedSensorTypeOptions lastAirspeedSensorType = -1;
|
||||
static int8_t airspeedADCPin = -1;
|
||||
|
||||
|
||||
@ -119,8 +119,6 @@ int32_t AirspeedInitialize()
|
||||
}
|
||||
}
|
||||
|
||||
lastAirspeedSensorType = airspeedSettings.AirspeedSensorType;
|
||||
|
||||
AirspeedSensorInitialize();
|
||||
AirspeedSettingsInitialize();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user