From d9b37ad4987049ae7b11a106d36cae3a94545c12 Mon Sep 17 00:00:00 2001 From: profezzorn Date: Mon, 23 Dec 2019 22:27:56 -0800 Subject: [PATCH] fix SAVE_VOLUME --- props/prop_base.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/props/prop_base.h b/props/prop_base.h index c970c835a..16ea26ba0 100644 --- a/props/prop_base.h +++ b/props/prop_base.h @@ -368,6 +368,7 @@ class PropBase : CommandParser, Looper, protected SaberBase { } while(0); ONCEPERBLADE(ACTIVATE); + RestoreGlobalState(); #ifdef SAVE_PRESET ResumePreset(); #else @@ -834,7 +835,7 @@ class PropBase : CommandParser, Looper, protected SaberBase { } else { #ifdef COLOR_CHANGE_DIRECT STDOUT << "Color change, TICK+\n"; - SaberBase::UpdateVariation(1); + SaberBase::UpdateVariation(1); #else STDOUT << "Entering stepped color change mode.\n"; SaberBase::SetColorChangeMode(SaberBase::COLOR_CHANGE_MODE_STEPPED); @@ -1157,12 +1158,11 @@ class PropBase : CommandParser, Looper, protected SaberBase { int32_t volume = strtol(arg, NULL, 0); if (volume >= 0 && volume <= 3000) { dynamic_mixer.set_volume(volume); - SaveGlobalState(); + PollSaveColorChange(); } #endif return true; } - if (!strcmp(cmd, "mute")) { SetMute(true); return true;