Skip to content

Commit 1fdfec9

Browse files
committed
fix: Warnings
1 parent 502590b commit 1fdfec9

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

Diff for: src/ArduinoIoTCloudTCP.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ ArduinoIoTCloudTCP::ArduinoIoTCloudTCP()
6767
, _mqtt_data_buf{0}
6868
, _mqtt_data_len{0}
6969
, _mqtt_data_request_retransmit{false}
70-
#ifdef BOARD_HAS_ECCX08
71-
, _sslClient(nullptr, ArduinoIoTCloudTrustAnchor, ArduinoIoTCloudTrustAnchor_NUM, getTime)
72-
#endif
7370
#ifdef BOARD_HAS_SECRET_KEY
7471
, _password("")
7572
#endif
73+
#ifdef BOARD_HAS_ECCX08
74+
, _sslClient(nullptr, ArduinoIoTCloudTrustAnchor, ArduinoIoTCloudTrustAnchor_NUM, getTime)
75+
#endif
7676
, _mqttClient{nullptr}
7777
, _deviceTopicOut("")
7878
, _deviceTopicIn("")

Diff for: src/utility/ota/OTA-portenta-h7.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ int portenta_h7_onOTARequest(char const * ota_url, NetworkAdapter iface)
8181
}
8282
#endif
8383
int const ota_portenta_qspi_download_ret_code = ota_portenta_qspi.downloadAndDecompress(ota_url, true /* is_https */, download_socket);
84+
(void)ota_portenta_qspi_download_ret_code; // variable unused, when not logged
8485
DEBUG_VERBOSE("Arduino_Portenta_OTA_QSPI::download(%s) returns %d", ota_url, ota_portenta_qspi_download_ret_code);
8586

8687
watchdog_reset();

Diff for: src/utility/time/TimeService.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ bool TimeServiceClass::connected()
281281
if(_con_hdl == nullptr) {
282282
return false;
283283
} else {
284-
return _con_hdl->getStatus() == NetworkConnectionState::CONNECTED;
284+
return _con_hdl->check() == NetworkConnectionState::CONNECTED;
285285
}
286286
}
287287

0 commit comments

Comments
 (0)