We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 053b1c3 commit 70cd205Copy full SHA for 70cd205
src/ArduinoIoTCloudDevice.cpp
@@ -48,7 +48,7 @@ int ArduinoCloudDevice::connected() {
48
void ArduinoCloudDevice::handleMessage(Message *m) {
49
_command = UnknownCmdId;
50
if (m != nullptr) {
51
- _command = m->id;
+ _command = static_cast<CommandId>(m->id);
52
}
53
54
/* Run through the state machine. */
src/ArduinoIoTCloudThing.cpp
@@ -69,7 +69,7 @@ int ArduinoCloudThing::connected() {
69
void ArduinoCloudThing::handleMessage(Message* m) {
70
71
72
73
if (_command == TimezoneCommandDownId) {
74
_utcOffset = reinterpret_cast<TimezoneCommandDown*>(m)->params.offset;
75
_utcOffsetExpireTime = reinterpret_cast<TimezoneCommandDown*>(m)->params.until;
0 commit comments