We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aebdca3 commit dd06e2fCopy full SHA for dd06e2f
cores/nRF5/HardwarePWM.cpp
@@ -82,7 +82,7 @@ void HardwarePWM::DebugOutput(Stream& logger)
82
logger.printf(" %08x", token);
83
}
84
for (size_t j = 0; j < MAX_CHANNELS; j++) {
85
- uint32_t r = pwm->_pwm->PSEL.OUT[i]; // only read it once
+ uint32_t r = pwm->_pwm->PSEL.OUT[j]; // only read it once
86
if ( (r & PWM_PSEL_OUT_CONNECT_Msk) != (PWM_PSEL_OUT_CONNECT_Disconnected << PWM_PSEL_OUT_CONNECT_Pos) ) {
87
logger.printf(" %02x", r & 0x1F);
88
} else {
0 commit comments