Skip to content

Commit bf24d44

Browse files
committed
OTA: fix Ota flags handling for deferred Ota
1 parent ef73a65 commit bf24d44

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ArduinoIoTCloudTCP.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,9 @@ class ArduinoIoTCloudTCP: public ArduinoIoTCloudClass
9696
_get_ota_confirmation = cb;
9797

9898
if(_get_ota_confirmation) {
99-
_ota.setOtaPolicies(OTACloudProcessInterface::ApprovalRequired);
99+
_ota.enableOtaPolicy(OTACloudProcessInterface::ApprovalRequired);
100100
} else {
101-
_ota.setOtaPolicies(OTACloudProcessInterface::None);
101+
_ota.disableOtaPolicy(OTACloudProcessInterface::ApprovalRequired);
102102
}
103103
}
104104

0 commit comments

Comments
 (0)