mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-25 18:46:45 +00:00
Decrease click time window to avoid spurious double press detections while cycling windows quickly, build power toggle by default
This commit is contained in:
parent
06be74ae7c
commit
f2229e6977
@ -51,6 +51,7 @@ class ButtonThread : public concurrency::OSThread
|
|||||||
pinMode(BUTTON_PIN, INPUT_PULLUP_SENSE);
|
pinMode(BUTTON_PIN, INPUT_PULLUP_SENSE);
|
||||||
#endif
|
#endif
|
||||||
userButton.attachClick(userButtonPressed);
|
userButton.attachClick(userButtonPressed);
|
||||||
|
userButton.setClickTicks(300);
|
||||||
userButton.attachDuringLongPress(userButtonPressedLong);
|
userButton.attachDuringLongPress(userButtonPressedLong);
|
||||||
userButton.attachDoubleClick(userButtonDoublePressed);
|
userButton.attachDoubleClick(userButtonDoublePressed);
|
||||||
userButton.attachMultiClick(userButtonMultiPressed);
|
userButton.attachMultiClick(userButtonMultiPressed);
|
||||||
|
@ -6,5 +6,5 @@ lib_deps =
|
|||||||
${esp32_base.lib_deps}
|
${esp32_base.lib_deps}
|
||||||
build_flags =
|
build_flags =
|
||||||
${esp32_base.build_flags} -D TBEAM_V10 -I variants/tbeam
|
${esp32_base.build_flags} -D TBEAM_V10 -I variants/tbeam
|
||||||
;-DGPS_POWER_TOGGLE ;uncomment this line to allow a double press on the user button to turn off gps entirely.
|
-DGPS_POWER_TOGGLE ; comment this line to disable double press function on the user button to turn off gps entirely.
|
||||||
upload_speed = 921600
|
upload_speed = 921600
|
||||||
|
Loading…
Reference in New Issue
Block a user