Skip to content

Commit 9abfb7c

Browse files
committed
[network] acm: make sure that failover to preferred does not happen during OTA
1 parent 07104a8 commit 9abfb7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

system/src/system_network_manager.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ void NetworkManager::handleIfLink(if_t iface, const struct if_event* ev) {
618618
}
619619

620620
// If the cloud is connected, and the preferred network becomes available, move to that network
621-
if (spark_cloud_flag_connected() && ConnectionManager::instance()->getPreferredNetwork() == netIfIndex) {
621+
if (spark_cloud_flag_connected() && ConnectionManager::instance()->getPreferredNetwork() == netIfIndex && !SPARK_FLASH_UPDATE) {
622622
LOG(INFO, "Preferred network %u available, moving cloud connection", netIfIndex);
623623
options.graceful(true);
624624
disconnectCloud = true;

0 commit comments

Comments
 (0)