Skip to content

Commit 11f1174

Browse files
paul-1bill88t
authored andcommitted
picow: Change init to use country code routine.....place holder for future improvements to allow country code setting.
1 parent 851c2cd commit 11f1174

File tree

1 file changed

+3
-1
lines changed
  • ports/raspberrypi/supervisor

1 file changed

+3
-1
lines changed

ports/raspberrypi/supervisor/port.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,9 @@ safe_mode_t port_init(void) {
140140
never_reset_pin_number(24);
141141
never_reset_pin_number(25);
142142
never_reset_pin_number(29);
143-
if (cyw43_arch_init()) {
143+
// Change this as a placeholder as to how to init with country code.
144+
// Default country code is CYW43_COUNTRY_WORLDWIDE)
145+
if (cyw43_arch_init_with_country(PICO_CYW43_ARCH_DEFAULT_COUNTRY_CODE)) {
144146
serial_write("WiFi init failed\n");
145147
} else {
146148
cyw_ever_init = true;

0 commit comments

Comments
 (0)