I've been banging my head against this for a couple hours now, maybe someone can help.
I have four momentary footswitches. Each one sets a mode which should remain constant until another footswitch is pressed.
I have tried things with sample and hold, however if the data changes at the same moment as the s_h trigger does it is very unreliable whether the data will be passed or not.
This should be simple but I am a bit lost at this point. Suggestions highly welcome!