zynthian / zynthian-issue-tracking

Centralized Issue Tracking for Zynthian Project
https://github.com/orgs/zynthian/projects/1
11 stars 3 forks source link

False encoder events triggered #624

Closed riban-bw closed 2 years ago

riban-bw commented 2 years ago

Describe the bug Each time an encoder is rotated there are events triggered for all encoders, not just the adjusted one.

To Reproduce Steps to reproduce the behavior:

  1. Within mixer view, rotate SELECT encoder

Expected behaviour Select encoder action occurs.

Actual behaviour Select encoder action occurs and also each other encoder.

Setup:

Additional context Detected during debugging. Adding breakpoints after each lib_zyncore.get_value_flag_zynpot call shows that this returns true for all encoders after any have changed state. This is a screenshot of my GPI config:

image

jofemodo commented 2 years ago

Sorry @riban-bw !!

I can't reproduce this issue. It works like a charm for me. I've a v4 over my desk. Could you send the log?

Thanks!

riban-bw commented 2 years ago

This is a V3. What log would you like to see. It is immediatly obvious if you run with a debugger and set breakpoints after each if lib_zyncore.get_value_flag_zynpot call within zyncoder_read function.

jofemodo commented 2 years ago

OK! I see. But it's only in the mixer, so it doesn't seem a problem with the zyncoder library. Let me do some research ...

jofemodo commented 2 years ago

Solved!