Crash on inline function button callback
Hello. As show here under, the moment I compile with that inline function, it crashes.
Basically I just want to load the next sound whenever that button is pressed.
Am I doing something wrong? Any help is greatly appreciated.
@nesta99 Your button is set to saveInPreset so when the preset loads it triggers the button, which loads the preset, which triggers the button, which loads the preset, which triggers the button, etc.
@nesta99 in general, it is better to use a condition in the callback so it isn't triggered twice (with the button set as momentary of course)
if (value) // do something
Ahah , great! Thanks man
Alright, will do. Thanks