Skip to content

Commit d9b37ad

Browse files
committed
fix SAVE_VOLUME
1 parent ca84dd4 commit d9b37ad

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

props/prop_base.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ class PropBase : CommandParser, Looper, protected SaberBase {
368368
} while(0);
369369

370370
ONCEPERBLADE(ACTIVATE);
371+
RestoreGlobalState();
371372
#ifdef SAVE_PRESET
372373
ResumePreset();
373374
#else
@@ -834,7 +835,7 @@ class PropBase : CommandParser, Looper, protected SaberBase {
834835
} else {
835836
#ifdef COLOR_CHANGE_DIRECT
836837
STDOUT << "Color change, TICK+\n";
837-
SaberBase::UpdateVariation(1);
838+
SaberBase::UpdateVariation(1);
838839
#else
839840
STDOUT << "Entering stepped color change mode.\n";
840841
SaberBase::SetColorChangeMode(SaberBase::COLOR_CHANGE_MODE_STEPPED);
@@ -1157,12 +1158,11 @@ class PropBase : CommandParser, Looper, protected SaberBase {
11571158
int32_t volume = strtol(arg, NULL, 0);
11581159
if (volume >= 0 && volume <= 3000) {
11591160
dynamic_mixer.set_volume(volume);
1160-
SaveGlobalState();
1161+
PollSaveColorChange();
11611162
}
11621163
#endif
11631164
return true;
11641165
}
1165-
11661166
if (!strcmp(cmd, "mute")) {
11671167
SetMute(true);
11681168
return true;

0 commit comments

Comments
 (0)