File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ int ArduinoCloudDevice::connected() {
4848void ArduinoCloudDevice::handleMessage (Message *m) {
4949 _command = UnknownCmdId;
5050 if (m != nullptr ) {
51- _command = m->id ;
51+ _command = static_cast <CommandId>( m->id ) ;
5252 }
5353
5454 /* Run through the state machine. */
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ int ArduinoCloudThing::connected() {
6969void ArduinoCloudThing::handleMessage (Message* m) {
7070 _command = UnknownCmdId;
7171 if (m != nullptr ) {
72- _command = m->id ;
72+ _command = static_cast <CommandId>( m->id ) ;
7373 if (_command == TimezoneCommandDownId) {
7474 _utcOffset = reinterpret_cast <TimezoneCommandDown*>(m)->params .offset ;
7575 _utcOffsetExpireTime = reinterpret_cast <TimezoneCommandDown*>(m)->params .until ;
You can’t perform that action at this time.
0 commit comments