Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c12417c

Browse files
committedMar 24, 2024
Add check
1 parent 621eaae commit c12417c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎libraries/WiFi/src/WiFiGeneric.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1291,7 +1291,9 @@ void WiFiGenericClass::setChannel(uint8_t primary, wifi_second_chan_t secondary)
12911291
return;
12921292
}
12931293

1294-
esp_wifi_set_channel(primary, secondary);
1294+
if (esp_wifi_set_channel(primary, secondary)) {
1295+
log_e("Failed to set channel");
1296+
}
12951297
}
12961298

12971299
/**

0 commit comments

Comments
 (0)
Please sign in to comment.