Results 8 comments of Vadim

switch(event.input.key) { case InputKeyOk: if(event.input.type == InputTypeLong) { ...func#1 key_press_seq_ok = event.input.sequence; } else if(event.input.type == InputTypeRelease && key_press_seq_ok != event.input.sequence) { // short press ...func#2 }

I need to handle long keypress and single keypress. how to do it?

Thanks, it's ok. I used InputTypePress instead of InputTypeShort.

The same issue. Happymodel SuperX HD 1S (F411).

прошивка всегда лежала тут: https://github.com/vad7/PowerMeter-IrDA/blob/master/bin/firmware.bin

это что-то личное, у меня так: Точное время: 27.04.2023 08:31:52 (Ok) Время включения: 19.04.2023 11:29:55 Причем, 19.04 отключали свет: Включения, выключения счетчика № | с | по 8 | 19.04.2023...

I am prefer to use tabs instead of spaces.