Skip to content

Commit 0a64be0

Browse files
committed
OTA: fix properly handle Ota flags for deferred Ota
1 parent 2301c7e commit 0a64be0

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.setOtaPolicy(OTACloudProcessInterface::ApprovalRequired);
100100
} else {
101-
_ota.setOtaPolicies(OTACloudProcessInterface::None);
101+
_ota.clearOtaPolicy(OTACloudProcessInterface::ApprovalRequired);
102102
}
103103
}
104104

0 commit comments

Comments
 (0)