From fb59d68eddf9271d39392af92a60bb0de5f92008 Mon Sep 17 00:00:00 2001 From: Manuel <71137295+mverch67@users.noreply.github.com> Date: Mon, 8 Sep 2025 12:45:11 +0200 Subject: [PATCH] fix uninitialized kbchar (#7889) --- src/input/RotaryEncoderImpl.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/input/RotaryEncoderImpl.cpp b/src/input/RotaryEncoderImpl.cpp index e00c1cc6f..7d638dd71 100644 --- a/src/input/RotaryEncoderImpl.cpp +++ b/src/input/RotaryEncoderImpl.cpp @@ -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()) {