mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-07 08:23:56 -04:00
AP_Baro.cpp: no need to set and save FIELD_ELV
parameter gets reset on boot
This commit is contained in:
parent
cfa0690ab1
commit
5dda9ac9d0
@ -982,7 +982,7 @@ void AP_Baro::update(void)
|
||||
BARO_SEND_TEXT(MAV_SEVERITY_INFO, "Barometer Field Elevation Set: %.0fm",_field_elevation_active);
|
||||
}
|
||||
else {
|
||||
_field_elevation.set_and_save(_field_elevation_active);
|
||||
_field_elevation.set(_field_elevation_active);
|
||||
_field_elevation.notify();
|
||||
BARO_SEND_TEXT(MAV_SEVERITY_ALERT, "Failed to Set Field Elevation: Armed");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user