From d438f9f9cbeb0de706dab2115d48c51b386b033d Mon Sep 17 00:00:00 2001 From: rusefi Date: Sat, 16 Oct 2021 17:37:32 -0400 Subject: [PATCH] refactoring - making enum compatible with tools --- firmware/controllers/sensors/sensor_type.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firmware/controllers/sensors/sensor_type.h b/firmware/controllers/sensors/sensor_type.h index a3676b3008..1101b4c984 100644 --- a/firmware/controllers/sensors/sensor_type.h +++ b/firmware/controllers/sensors/sensor_type.h @@ -18,7 +18,7 @@ * maybe we just need a better naming convention? ************************************** */ -enum class SensorType : unsigned char { +typedef enum __attribute__ ((__packed__)) { Invalid = 0, Clt = 1, Iat = 2, @@ -84,4 +84,4 @@ enum class SensorType : unsigned char { // Leave me at the end! PlaceholderLast = 38, -}; +} SensorType;