EN16 - Page change on button mode need another press event to work

Hello,
I have the latest Grid Editor.
I have an EN16 where my top 4 encoders change page on push with page_load(2), etc. to change pages.
The problem I have is when I press the encoder, it changes the page, but not immediately, I have to press another encoder for the page change to “happen”.

Example:
Page 1
EN1: press to page 2
Nothing happens
press random Encoder, EN7: page Changed to page 2, and normal behavior on EN7

How can I improve the behavior?
I think it’s in the Setup event but I don’t know what to do.

Could you share the configuration itself?
This seems like something that should be easy to fix.

Hello @narayb , thanks for answering, sorry it took so long to answer.
I forgot to create a preset for my config, so I have this screenshot, tell me if it helps to understand.

On picture:

  • I’m on page 2
  • my EN1 button action on page 2 is set to go to page 1
  • but it’s not immediate (I have to push another button for the page change to take effect)

Thank you for your help

1 Like

A-HA!

I see it now.

What happens is that when you change Page with the encoder it will not wait for the encoder to be released before changing Pages.
It goes like this: you press it (state 127 or Pressed state), Page change happens and when you switch back to the Page you will see that the LED shines brightly. This is because the Encoder state is still 127 from before!

I mean it works as intended, but it is annoying tbh. What you could do, is that you put the Page change code on the Release section of the Encoder button.
That would fix your issue for now!