Don't reset GPIO4 (used for voltage monitoring)

This commit is contained in:
root 2022-04-05 11:30:12 -05:00
parent 87e59a4448
commit b993313ac1

View File

@ -188,6 +188,10 @@ bool espressif_board_reset_pin_number(gpio_num_t pin_number) {
gpio_config(&cfg);
return true;
}
// Pin 4 is used for voltage monitoring, so don't reset
if (pin_number == 4) {
return true;
}
return false;
}