We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 897b914 commit 5b04862Copy full SHA for 5b04862
pico_w/wifi/ota_update/picow_ota_update.c
@@ -347,6 +347,8 @@ int main() {
347
tcp_update_server_result(state, -1);
348
return -1;
349
}
350
+
351
+ bool led_state = false;
352
while(!state->complete) {
353
// the following #ifdef is only here so this same example can be used in multiple modes;
354
// you do not need it in your code
@@ -357,9 +359,8 @@ int main() {
357
359
#endif
358
360
361
// Do your application code here
- cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1);
- sleep_ms(250);
362
- cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 0);
+ led_state = !led_state;
363
+ cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, led_state);
364
sleep_ms(250);
365
366
0 commit comments