In my test setup, longpress only works once after starting. I have eight buttons (on a switch input - PCF8574), the long press event is only sent once for each.
Code: Select all
First time after boot:
21065: PCF : Port=3 State=1 Output value=1
21167: EVENT: SW03#SW03=1
21203: PCF : LongPress: Port= 3 State=1 Output value=11
21239: EVENT: SW03#SW03=11
24265: PCF : Port=3 State=0 Output value=0
24305: EVENT: SW03#SW03=0
Code: Select all
Second time after boot:
40765: PCF : Port=3 State=1 Output value=1
40802: EVENT: SW03#SW03=1
44265: PCF : Port=3 State=0 Output value=0
44363: EVENT: SW03#SW03=0
Thanks.