Skip to content

Commit b993313

Browse files
committed
Don't reset GPIO4 (used for voltage monitoring)
1 parent 87e59a4 commit b993313

File tree

1 file changed

+4
-0
lines changed
  • ports/espressif/boards/adafruit_magtag_2.9_grayscale

1 file changed

+4
-0
lines changed

ports/espressif/boards/adafruit_magtag_2.9_grayscale/board.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,10 @@ bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
188188
gpio_config(&cfg);
189189
return true;
190190
}
191+
// Pin 4 is used for voltage monitoring, so don't reset
192+
if (pin_number == 4) {
193+
return true;
194+
}
191195
return false;
192196
}
193197

0 commit comments

Comments
 (0)