Device driver function executes twice when called from RM or ABC button press

OK, I understand what you mean about the possible issue of flushing the state variables, and now I remember that in all my later drivers I have added :

singleThreaded: true

in the definition section. But this early driver is missing it !

Can you add the above option and see if it makes any difference?

P.S. I have also updated the code in the test branch from the link above

1 Like