Skip to content

Commit bf15aea

Browse files
authored
use LED_GPIO not 0 (#436)
1 parent 545185d commit bf15aea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pico_w/wifi/access_point/picow_access_point.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,10 @@ static int test_server_content(const char *request, const char *params, char *re
9797
if (led_param == 1) {
9898
if (led_state) {
9999
// Turn led on
100-
cyw43_gpio_set(&cyw43_state, 0, true);
100+
cyw43_gpio_set(&cyw43_state, LED_GPIO, true);
101101
} else {
102102
// Turn led off
103-
cyw43_gpio_set(&cyw43_state, 0, false);
103+
cyw43_gpio_set(&cyw43_state, LED_GPIO, false);
104104
}
105105
}
106106
}

0 commit comments

Comments
 (0)