File tree Expand file tree Collapse file tree 1 file changed +2
-12
lines changed
Expand file tree Collapse file tree 1 file changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -444,12 +444,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_CheckDeviceConfig()
444444
445445ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeThingTopics ()
446446{
447- if (!_mqttClient.connected ())
448- {
449- return State::Disconnect;
450- }
451-
452- if (_thing_id_property->isDifferentFromCloud ())
447+ if (!_mqttClient.connected () || _thing_id_property->isDifferentFromCloud ())
453448 {
454449 return State::Disconnect;
455450 }
@@ -490,12 +485,7 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_SubscribeThingTopics()
490485
491486ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_RequestLastValues ()
492487{
493- if (!_mqttClient.connected ())
494- {
495- return State::Disconnect;
496- }
497-
498- if (_thing_id_property->isDifferentFromCloud ())
488+ if (!_mqttClient.connected () || _thing_id_property->isDifferentFromCloud ())
499489 {
500490 return State::Disconnect;
501491 }
You can’t perform that action at this time.
0 commit comments