From be4064bb1464812199a000e3692083ecf534c45d Mon Sep 17 00:00:00 2001 From: Kevin Matz Date: Sun, 9 Apr 2023 19:32:35 -0400 Subject: [PATCH] declare a storage type for enums --- protocol/enttec/dmx-usb-pro/pro.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/enttec/dmx-usb-pro/pro.h b/protocol/enttec/dmx-usb-pro/pro.h index cd8c396..a7a30f1 100644 --- a/protocol/enttec/dmx-usb-pro/pro.h +++ b/protocol/enttec/dmx-usb-pro/pro.h @@ -43,7 +43,7 @@ const uint8_t END_DELIMITER = 0xe7; //!< End of message delimiter * \cite DMXUSBPro The Widget firmware version identifies the set of application messages that * are supported by the firmware. The Widget will ignore any unsupported application messages. */ -enum FIRMWARE_TYPE { +enum FIRMWARE_TYPE : uint8_t { FwUnknown = 0, FwDMX = 1, //!< Normal DMX firmware. FwRDM = 2, //!< RDM firmware @@ -54,7 +54,7 @@ enum FIRMWARE_TYPE { /** * @brief All message labels from API 1.44 */ -enum MESSAGE_LABEL { +enum MESSAGE_LABEL : uint8_t { OpNoop = 0, //!< null message, out-of-spec definition. Not in API! OpReprogramFirmware = 1, //!< Reprogram Firmware Request OpProgramFlashPage = 2, //!< Program Flash Page Request / Reply