fix uninitialized kbchar (#7889)

This commit is contained in:
Manuel
2025-09-08 05:45:11 -05:00
committed by GitHub
co-authored by GitHub
parent 7b854fb5ca
commit fb59d68edd
+1 -4
View File
@@ -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()) {