feat: add factory reset on holding BOOT button
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
menu "Sensor Configuration"
|
||||
|
||||
config SENSOR_RESET_GPIO
|
||||
int "Factory reset button GPIO number"
|
||||
default 0
|
||||
help
|
||||
GPIO connected to the factory reset button. The pin is configured
|
||||
with the internal pull-up enabled; connect the button between this
|
||||
pin and GND (active-low). GPIO 0 is the BOOT button on standard
|
||||
ESP32 DevKit boards and requires no extra hardware.
|
||||
|
||||
config SENSOR_RESET_HOLD_MS
|
||||
int "Factory reset hold duration (ms)"
|
||||
default 5000
|
||||
range 1000 30000
|
||||
help
|
||||
How long the factory reset button must be held continuously before
|
||||
a factory reset is triggered. Shorter presses are ignored.
|
||||
|
||||
endmenu
|
||||
Reference in New Issue
Block a user