File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ int ArduinoCloudDevice::connected() {
48
48
void ArduinoCloudDevice::handleMessage (Message *m) {
49
49
_command = UnknownCmdId;
50
50
if (m != nullptr ) {
51
- _command = m->id ;
51
+ _command = static_cast <CommandId>( m->id ) ;
52
52
}
53
53
54
54
/* Run through the state machine. */
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ int ArduinoCloudThing::connected() {
69
69
void ArduinoCloudThing::handleMessage (Message* m) {
70
70
_command = UnknownCmdId;
71
71
if (m != nullptr ) {
72
- _command = m->id ;
72
+ _command = static_cast <CommandId>( m->id ) ;
73
73
if (_command == TimezoneCommandDownId) {
74
74
_utcOffset = reinterpret_cast <TimezoneCommandDown*>(m)->params .offset ;
75
75
_utcOffsetExpireTime = reinterpret_cast <TimezoneCommandDown*>(m)->params .until ;
You can’t perform that action at this time.
0 commit comments