Skip to content

Commit

Permalink
OTA: fix build with boards using offloaded Ota
Browse files Browse the repository at this point in the history
  • Loading branch information
pennam committed Dec 12, 2024
1 parent 428cee4 commit 8152c4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ArduinoIoTCloudTCP.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
/* Slower but more reliable in some corner cases */
void setOTAChunkMode(bool enable = true) {
if(enable) {
_ota.enableOtaPolicy(OTADefaultCloudProcessInterface::ChunkDownload);
_ota.enableOtaPolicy(OTACloudProcessInterface::ChunkDownload);
} else {
_ota.disableOtaPolicy(OTADefaultCloudProcessInterface::ChunkDownload);
_ota.disableOtaPolicy(OTACloudProcessInterface::ChunkDownload);
}
}
#endif
Expand Down

0 comments on commit 8152c4b

Please sign in to comment.