Skip to content

Commit c12417c

Browse files
committed
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

+3-1
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)