Issue with my buttons prop file

So I have this code currently for 1-button setup:

// Color Change mode
#ifndef DISABLE_COLOR_CHANGE
      case EVENTID(BUTTON_NONE, EVENT_TWIST, MODE_ON | BUTTON_POWER):
        ToggleColorChangeMode();
        break;
#endif

// Start or Stop Track
      case EVENTID(BUTTON_POWER, EVENT_CLICK_LONG, MODE_ON):
        StartOrStopTrack();
        return true;

And when I’m entering Color Change mode, music track starts to play because I’m holding and releasing the button + performing hilt twist motion. What do I need to add to the Color Change event code so it ignored music track triggering when I’m holding the button + twisting the hilt?

Does it work if you use return true; instead of break; after ToggleColorChangeMode?
(return true; is how you signal that a button press has been handled.)

2 Likes

Yes! Works great now, thank you!

1 Like

Which OS this If you don’t mind me asking?

ProffieOS 5.9

1 Like