From e58b39e2ded01799764d5c1ad86dc43577b4db10 Mon Sep 17 00:00:00 2001 From: Henry Gabryjelski Date: Fri, 10 Jul 2020 19:53:48 -0700 Subject: [PATCH] Reduce debug output for analog_write() Remove all output when the pin is already configured and everything works. --- cores/nRF5/wiring_analog.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/cores/nRF5/wiring_analog.cpp b/cores/nRF5/wiring_analog.cpp index b2e88115..22ece424 100644 --- a/cores/nRF5/wiring_analog.cpp +++ b/cores/nRF5/wiring_analog.cpp @@ -81,16 +81,13 @@ void analogWrite( uint32_t pin, uint32_t value ) for(int i=0; iisOwner(_analogToken)) { - LOG_LV3("ANA", "not currently owner of PWM %d", i); continue; // skip if not owner of this PWM instance } int const ch = HwPWMx[i]->pin2channel(pin); if (ch < 0) { - LOG_LV3("ANA", "pin %d is not used by PWM %d", pin, i); continue; // pin not in use by this PWM instance } - LOG_LV2("ANA", "updating pin %" PRIu32 " used by PWM %d", pin, i); HwPWMx[i]->writeChannel(ch, value); return; }