picow: Change init to use country code routine.....place holder for future improvements to allow country code setting.

This commit is contained in:
paul-1 2022-10-29 15:30:57 -04:00 committed by Bill Sideris
parent 851c2cd8cb
commit 11f1174658
No known key found for this signature in database
GPG Key ID: 1BEF1BCEBA58EA33
1 changed files with 3 additions and 1 deletions

View File

@ -140,7 +140,9 @@ safe_mode_t port_init(void) {
never_reset_pin_number(24);
never_reset_pin_number(25);
never_reset_pin_number(29);
if (cyw43_arch_init()) {
// Change this as a placeholder as to how to init with country code.
// Default country code is CYW43_COUNTRY_WORLDWIDE)
if (cyw43_arch_init_with_country(PICO_CYW43_ARCH_DEFAULT_COUNTRY_CODE)) {
serial_write("WiFi init failed\n");
} else {
cyw_ever_init = true;