mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 22:33:34 +08:00
ekf2: scope HeightSensor enum
This commit is contained in:
@@ -68,7 +68,7 @@ void Ekf::checkHeightSensorRefFallback()
|
||||
|
||||
HeightSensor fallback_list[4];
|
||||
|
||||
switch (_params.height_sensor_ref) {
|
||||
switch (static_cast<HeightSensor>(_params.height_sensor_ref)) {
|
||||
default:
|
||||
|
||||
/* FALLTHROUGH */
|
||||
|
||||
Reference in New Issue
Block a user