ProffieOS icon indicating copy to clipboard operation
ProffieOS copied to clipboard

ToggleColorChangeMode broken

Open NoSloppy opened this issue 10 months ago • 17 comments

I was testing changes to my prop and thought I was crazy. Calling ToggleColorChangeMode() enters fine, but no controls intended to exit work. Conversely, the oddest thing is that EVENT: Power-SavedShortclick#1 plays ccend.wav and exits CC mode, but that is only set to do a blaster block in my code.

Even weirder, clicking AUX exited the mode:

03:57:47.051 -> EVENT: Aux-SavedShortclick#1 ON millis=61363
03:57:47.051 -> unit = 1 vol = 0.50, Playing common/ccend.wav

yet EVENTID(BUTTON_AUX, EVENT_FIRST_SAVED_CLICK_SHORT, MODE_ON) does not even exist anywhere in the prop file at all.

I put a printout directly after the click POW event:

      case EVENTID(BUTTON_POWER, EVENT_FIRST_SAVED_CLICK_SHORT, MODE_ON):
STDOUT << "*** Why is this exiting ColorChange mode???\n";

and it does not print if in CC mode.

04:11:52.830 -> EVENT: Power-SavedShortclick#1 ON millis=45179
04:11:52.830 -> unit = 1 vol = 0.50, Playing common/ccend.wav

it prints fine if NOT in CC mode.

04:00:44.651 -> EVENT: Power-SavedShortclick#1 ON millis=238967
04:00:44.651 -> *** Why is this exiting ColorChange mode???

Lastly, I tried from Serial Monitor, and sending ccmode enters the mode, but I got a slew of Save file notices:

04:11:01.056 -> Creating file 00_2ndSisterSave/presets.ini iteration = 249
04:11:01.241 -> Creating file 00_2ndSisterSave/presets.tmp iteration = 250
04:11:01.277 -> Creating file 00_2ndSisterSave/presets.ini iteration = 251
04:11:01.346 -> Creating file 00_2ndSisterSave/presets.tmp iteration = 252
04:11:01.417 -> Creating file 00_2ndSisterSave/presets.ini iteration = 253
04:11:01.489 -> Creating file 00_2ndSisterSave/presets.tmp iteration = 254

that just kept going. Typing ccmode again did not toggle out of the mode.

NoSloppy avatar Apr 04 '24 08:04 NoSloppy