Skip to content

Commit

Permalink
STDERR to PVLOG_DEBUG (#691)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoSloppy authored Aug 24, 2024
1 parent cf53350 commit dd27fed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions common/saber_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -295,12 +295,12 @@ class SaberBase {
SaberBase::DoOn(0);
}
static void TurnOn(EffectLocation location) {
STDERR << "TurnOn " << location << "\n";
PVLOG_DEBUG << "TurnOn " << location << "\n";
// You can't turn on a blade that's already on.
location.blades_ &=~ on_;
STDERR << "TurnOn2 " << location << "\n";
PVLOG_DEBUG << "TurnOn2 " << location << "\n";
if (location.blades_.off()) return;
STDERR << "TurnOn3 " << location << "\n";
PVLOG_DEBUG << "TurnOn3 " << location << "\n";
on_ |= location.blades();
SaberBase::DoOn(location);
}
Expand All @@ -310,11 +310,11 @@ class SaberBase {
SaberBase::DoOff(off_type, 0);
}
static void TurnOff(OffType off_type, EffectLocation location) {
STDERR << "TurnOff " << location << "\n";
PVLOG_DEBUG << "TurnOff " << location << "\n";
location.blades_ &= on_; // can only turn off blades which are on
STDERR << "TurnOff " << location << "\n";
PVLOG_DEBUG << "TurnOff " << location << "\n";
if (location.blades_.off()) return;
STDERR << "TurnOff " << location << "\n";
PVLOG_DEBUG << "TurnOff " << location << "\n";
on_ &=~ location.blades();
last_motion_request_ = millis();
SaberBase::DoOff(off_type, location);
Expand Down

0 comments on commit dd27fed

Please sign in to comment.