Skip to content

Commit 431e689

Browse files
Louis31423142lurch
andauthored
Update pico_w/wifi/access_point/picow_access_point.c
Co-authored-by: Andrew Scheller <[email protected]>
1 parent 489fce1 commit 431e689

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

pico_w/wifi/access_point/picow_access_point.c

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,7 @@ static const char *switch_cgi_handler(int iIndex, int iNumParams, char *pcParam[
3333
printf("LED state: %d\n", led_state);
3434

3535
// Now flip the state
36-
if (led_state) {
37-
// Turn led off
38-
status_led_set_state(0);
39-
} else {
40-
// Turn led on
41-
status_led_set_state(1);
42-
}
36+
status_led_set_state(!led_state);
4337

4438
// Update led state
4539
led_state = status_led_get_state();

0 commit comments

Comments
 (0)