fix onebutton deprection warning (#2512)

This commit is contained in:
Thomas Göttgens authored and GitHub committed 2023-05-24 07:16:05 -05:00
1 parent 2728e86aab
commit 1ae77d198d
1 file changed
+1 -1
+1 -1
View File
@@ -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);