Skip to content

Commit c2ffdf6

Browse files
committed
wip(odyssee): fix setting operation type and mode
1 parent 06d8c3b commit c2ffdf6

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

AquaMQTT/include/message/MessageConstants.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -245,12 +245,13 @@ static const char* operationModeStr(HMIOperationMode mode)
245245
}
246246
}
247247

248-
enum HMIOperationType
248+
enum HMIOperationType : int
249249
{
250-
OT_UNKNOWN,
251-
OT_ALWAYS_ON,
252-
OT_TIMER,
253-
OT_OFF_PEAK_HOURS
250+
OT_UNKNOWN = -1,
251+
OT_OFF_PEAK_HOURS = 0,
252+
OT_ALWAYS_ON = 1,
253+
OT_TIMER = 2,
254+
254255
};
255256

256257
static const char* operationTypeStr(const HMIOperationType type)

0 commit comments

Comments
 (0)