Skip to content

Commit

Permalink
serial monitor cmds for dual blades (#625)
Browse files Browse the repository at this point in the history
Avoids changing unmute_on_deactivation_ when only a single blade is deactivated.
  • Loading branch information
NoSloppy authored Feb 25, 2024
1 parent 8c95bbc commit 0515afc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions props/prop_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ class PropBase : CommandParser, Looper, protected SaberBase {
PRINT_CHECK_BLADE=true;
if (SaberBase::BladeIsOn(1)) {
STDOUT << "Turning off SINGLE blade.\n";
Off(OffType::OFF_NORMAL, EffectLocation(1000, ~~BladeSet::fromBlade(2)));
SaberBase::TurnOff(OffType::OFF_NORMAL, EffectLocation(1000, ~~BladeSet::fromBlade(2)));
} else {
STDOUT << "Turning off all blades.\n";
Off(OffType::OFF_NORMAL);
Expand All @@ -1355,7 +1355,7 @@ class PropBase : CommandParser, Looper, protected SaberBase {
if (SaberBase::BladeIsOn(2)) {
EffectLocation tmp = EffectLocation(1000, ~~BladeSet::fromBlade(1));
STDOUT << "Turning off SINGLE blade: " << tmp << "\n";
Off(OffType::OFF_NORMAL, tmp);
SaberBase::TurnOff(OffType::OFF_NORMAL, tmp);
} else {
STDOUT << "Turning off all blades.\n";
Off(OffType::OFF_NORMAL);
Expand Down

0 comments on commit 0515afc

Please sign in to comment.