Skip to content

Commit

Permalink
Fixed bug caused by find/replace
Browse files Browse the repository at this point in the history
  • Loading branch information
realJoshByrnes committed Mar 19, 2023
1 parent 5324579 commit 158d784
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/led.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ int32_t is_pico_w() {
else {
gpio_init(VSYS_CTL_GPIO); // GPIO
gpio_set_dir(VSYS_CTL_GPIO, GPIO_OUT); // output
set_led(VSYS_CTL_GPIO, 0); // low
gpio_put(VSYS_CTL_GPIO, 0); // low
if (adc_read() < ONE_VOLT) {
set_led(VSYS_CTL_GPIO, 1); // high
gpio_put(VSYS_CTL_GPIO, 1); // high
picoW = 1; // Pico W
} else {
picoW = 0; // Pico
Expand Down

0 comments on commit 158d784

Please sign in to comment.