From 2a274675f6aff767eab36329b68e0ecad1fe5655 Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Sun, 1 Apr 2018 01:38:28 +1100 Subject: [PATCH] AP_AHRS: narrow enumeration to uint8_t to avoid narrowing-warnings --- libraries/AP_AHRS/AP_AHRS.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/AP_AHRS/AP_AHRS.h b/libraries/AP_AHRS/AP_AHRS.h index a48ec279bb..c9324d9374 100644 --- a/libraries/AP_AHRS/AP_AHRS.h +++ b/libraries/AP_AHRS/AP_AHRS.h @@ -35,7 +35,7 @@ class OpticalFlow; #define AP_AHRS_RP_P_MIN 0.05f // minimum value for AHRS_RP_P parameter #define AP_AHRS_YAW_P_MIN 0.05f // minimum value for AHRS_YAW_P parameter -enum AHRS_VehicleClass { +enum AHRS_VehicleClass : uint8_t { AHRS_VEHICLE_UNKNOWN, AHRS_VEHICLE_GROUND, AHRS_VEHICLE_COPTER,