1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-03 03:42:20 +01:00

Fix EzoCommandType enum (#4593)

* Fix EzoCommandType enum

Assign explicit value to EZO_CALIBRATION, and rescale all subsequent values.

* Remove enum values

---------

Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
Alfredo
2023-03-28 00:08:26 +02:00
committed by GitHub
parent 06f83bf1c0
commit 1f50bd0649

View File

@@ -12,14 +12,14 @@ static const char *const TAG = "ezo.sensor";
enum EzoCommandType : uint8_t { enum EzoCommandType : uint8_t {
EZO_READ = 0, EZO_READ = 0,
EZO_LED = 1, EZO_LED,
EZO_DEVICE_INFORMATION = 2, EZO_DEVICE_INFORMATION,
EZO_SLOPE = 3, EZO_SLOPE,
EZO_CALIBRATION, EZO_CALIBRATION,
EZO_SLEEP = 4, EZO_SLEEP,
EZO_I2C = 5, EZO_I2C,
EZO_T = 6, EZO_T,
EZO_CUSTOM = 7 EZO_CUSTOM
}; };
enum EzoCalibrationType : uint8_t { EZO_CAL_LOW = 0, EZO_CAL_MID = 1, EZO_CAL_HIGH = 2 }; enum EzoCalibrationType : uint8_t { EZO_CAL_LOW = 0, EZO_CAL_MID = 1, EZO_CAL_HIGH = 2 };