mirror of
https://github.com/meshtastic/firmware.git
synced 2025-09-12 14:05:58 +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()
|
int32_t RotaryEncoderImpl::runOnce()
|
||||||
{
|
{
|
||||||
InputEvent e;
|
InputEvent e{originName, INPUT_BROKER_NONE, 0, 0, 0};
|
||||||
e.inputEvent = INPUT_BROKER_NONE;
|
|
||||||
e.source = this->originName;
|
|
||||||
|
|
||||||
static uint32_t lastPressed = millis();
|
static uint32_t lastPressed = millis();
|
||||||
if (rotary->readButton() == RotaryEncoder::ButtonState::BUTTON_PRESSED) {
|
if (rotary->readButton() == RotaryEncoder::ButtonState::BUTTON_PRESSED) {
|
||||||
if (lastPressed + 200 < millis()) {
|
if (lastPressed + 200 < millis()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user