kopia lustrzana https://github.com/meshtastic/firmware
fix onebutton deprection warning (#2512)
rodzic
2728e86aab
commit
1ae77d198d
|
@ -51,7 +51,7 @@ class ButtonThread : public concurrency::OSThread
|
|||
pinMode(config.device.button_gpio ? config.device.button_gpio : BUTTON_PIN, INPUT_PULLUP_SENSE);
|
||||
#endif
|
||||
userButton.attachClick(userButtonPressed);
|
||||
userButton.setClickTicks(300);
|
||||
userButton.setClickMs(300);
|
||||
userButton.attachDuringLongPress(userButtonPressedLong);
|
||||
userButton.attachDoubleClick(userButtonDoublePressed);
|
||||
userButton.attachMultiClick(userButtonMultiPressed);
|
||||
|
|
Ładowanie…
Reference in New Issue