Skip to content

Commit 48c25ee

Browse files
committed
Reduce debug output for analog_write()
Remove all output when the pin is already configured and everything works.
1 parent 80a07b6 commit 48c25ee

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

cores/nRF5/wiring_analog.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,16 +81,13 @@ void analogWrite( uint32_t pin, uint32_t value )
8181
for(int i=0; i<HWPWM_MODULE_NUM; i++)
8282
{
8383
if (!HwPWMx[i]->isOwner(_analogToken)) {
84-
LOG_LV3("ANA", "not currently owner of PWM %d", i);
8584
continue; // skip if not owner of this PWM instance
8685
}
8786

8887
int const ch = HwPWMx[i]->pin2channel(pin);
8988
if (ch < 0) {
90-
LOG_LV3("ANA", "pin %d is not used by PWM %d", pin, i);
9189
continue; // pin not in use by this PWM instance
9290
}
93-
LOG_LV2("ANA", "updating pin %" PRIu32 " used by PWM %d", pin, i);
9491
HwPWMx[i]->writeChannel(ch, value);
9592
return;
9693
}

0 commit comments

Comments
 (0)