Skip to content

Commit 8152c4b

Browse files
committed
OTA: fix build with boards using offloaded Ota
1 parent 428cee4 commit 8152c4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArduinoIoTCloudTCP.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
105105
/* Slower but more reliable in some corner cases */
106106
void setOTAChunkMode(bool enable = true) {
107107
if(enable) {
108-
_ota.enableOtaPolicy(OTADefaultCloudProcessInterface::ChunkDownload);
108+
_ota.enableOtaPolicy(OTACloudProcessInterface::ChunkDownload);
109109
} else {
110-
_ota.disableOtaPolicy(OTADefaultCloudProcessInterface::ChunkDownload);
110+
_ota.disableOtaPolicy(OTACloudProcessInterface::ChunkDownload);
111111
}
112112
}
113113
#endif

0 commit comments

Comments
 (0)