mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-11 21:41:36 +00:00
fix uninitialized kbchar (#7889)
This commit is contained in:
parent
7b854fb5ca
commit
fb59d68edd
@ -40,10 +40,7 @@ bool RotaryEncoderImpl::init()
|
||||
|
||||
int32_t RotaryEncoderImpl::runOnce()
|
||||
{
|
||||
InputEvent e;
|
||||
e.inputEvent = INPUT_BROKER_NONE;
|
||||
e.source = this->originName;
|
||||
|
||||
InputEvent e{originName, INPUT_BROKER_NONE, 0, 0, 0};
|
||||
static uint32_t lastPressed = millis();
|
||||
if (rotary->readButton() == RotaryEncoder::ButtonState::BUTTON_PRESSED) {
|
||||
if (lastPressed + 200 < millis()) {
|
||||
|
Loading…
Reference in New Issue
Block a user