fix ble connection , ok !
This commit is contained in:
@@ -35,6 +35,7 @@ public:
|
||||
private:
|
||||
// Per-pad state machine
|
||||
struct PadState {
|
||||
explicit PadState(uint8_t p = 0) : pin(p) {}
|
||||
uint8_t pin;
|
||||
bool wasDown = false;
|
||||
uint32_t pressedAt = 0;
|
||||
@@ -42,9 +43,9 @@ private:
|
||||
};
|
||||
|
||||
PadState _pads[3] = {
|
||||
{Pins::TOUCH_NEXT},
|
||||
{Pins::TOUCH_PREV},
|
||||
{Pins::TOUCH_ACTION}
|
||||
PadState(Pins::TOUCH_NEXT),
|
||||
PadState(Pins::TOUCH_PREV),
|
||||
PadState(Pins::TOUCH_ACTION)
|
||||
};
|
||||
|
||||
uint32_t _lastDebounce = 0;
|
||||
|
||||
Reference in New Issue
Block a user