formatting

This commit is contained in:
proddy
2021-03-23 22:20:38 +01:00
parent c341148009
commit cc0f4c43ae
3 changed files with 6 additions and 6 deletions

View File

@@ -28,9 +28,9 @@ PButton::PButton() {
LongPressDelay_ = 750; // Hold period for a long press event (in ms)
VLongPressDelay_ = 3000; // Hold period for a very long press event (in ms)
cb_onClick = nullptr;
cb_onDblClick = nullptr;
cb_onLongPress = nullptr;
cb_onClick = nullptr;
cb_onDblClick = nullptr;
cb_onLongPress = nullptr;
cb_onVLongPress = nullptr;
// Initialization of variables
@@ -144,7 +144,7 @@ bool PButton::check(void) {
// added code: raise OnVLongPress event when the button is released, only for pin 0
if (state_ == pullMode_ && vLongPressHappened_) {
resultEvent = 4;
resultEvent = 4;
vLongPressHappened_ = false;
longPressHappened_ = false;
}