Hi Matt, thanks for the answer.
The problem i'm facing is that this 'debounce' doesn't seem to work. It's easy to get the pedal stuck on this toggling between two adjacent values. Just slightly shake it a little bit and it starts to flicker.
I thought it could be a problem with the rest of the FCB hardware, but it's all working as expected, the only thing amiss is this flickering but as you said it seems to be a known issue.
I can't think of any way a problem could happen on just an specific part of the firmware, once all the rest is working just right.
More than that, I'm afraid the FCB itself has some limitations that wouldn't work for me, like not being able to send two expression pedals at once. I've decided to rip off the whole control circuit and use an arduino board to communicate directly to USB and have it programmed just the way I need.
Before that my approach was using MIDI Remote Script inside Ableton Live to replicate the behaviour on the board, which actually worked pretty well, except for the (sometimes even random) latency from the device.
I'm still not sure about it, but I don't think I'd be able to solve this problem without having to buy another firmware to give it a try. And I'm not sure this is a firmware flaw, so I'm really lost on this one.