From dd27fedcede39b79b4389e9f7297c9e13270d990 Mon Sep 17 00:00:00 2001 From: NoSloppy <53964195+NoSloppy@users.noreply.github.com> Date: Sat, 24 Aug 2024 11:47:32 -0400 Subject: [PATCH] STDERR to PVLOG_DEBUG (#691) --- common/saber_base.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/common/saber_base.h b/common/saber_base.h index 924cd9cea..5562d7630 100644 --- a/common/saber_base.h +++ b/common/saber_base.h @@ -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); } @@ -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);