fix uninitialized kbchar (#7889)

This commit is contained in:
Manuel 2025-09-08 12:45:11 +02:00 committed by GitHub
parent 7b854fb5ca
commit fb59d68edd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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()) {