Skip to content

Commit 684b5b0

Browse files
committed
SQUASHME: Move sendOTAUrlToCloud() inside OTA_ENABLED ifdef
1 parent 474eda4 commit 684b5b0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/ArduinoIoTCloudTCP.cpp

+6-5
Original file line numberDiff line numberDiff line change
@@ -659,18 +659,19 @@ ArduinoIoTCloudTCP::State ArduinoIoTCloudTCP::handle_Connected()
659659
sendOTAErrorToCloud();
660660
}
661661
}
662+
663+
/* Check if we have received the OTA_URL property and provide
664+
* echo to the cloud.
665+
*/
666+
sendOTAUrlToCloud();
667+
662668
#endif /* OTA_ENABLED */
663669

664670
/* Check if any properties need encoding and send them to
665671
* the cloud if necessary.
666672
*/
667673
sendThingPropertiesToCloud();
668674

669-
/* Check if we have received the OTA_URL property and provide
670-
* echo to the cloud.
671-
*/
672-
sendOTAUrlToCloud();
673-
674675
unsigned long const internal_posix_time = _time_service.getTime();
675676
if(internal_posix_time < _tz_dst_until) {
676677
return State::Connected;

0 commit comments

Comments
 (0)