Skip to content

Commit dd06e2f

Browse files
committed
Fix HwPWM debug logging typo
1 parent aebdca3 commit dd06e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cores/nRF5/HardwarePWM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ void HardwarePWM::DebugOutput(Stream& logger)
8282
logger.printf(" %08x", token);
8383
}
8484
for (size_t j = 0; j < MAX_CHANNELS; j++) {
85-
uint32_t r = pwm->_pwm->PSEL.OUT[i]; // only read it once
85+
uint32_t r = pwm->_pwm->PSEL.OUT[j]; // only read it once
8686
if ( (r & PWM_PSEL_OUT_CONNECT_Msk) != (PWM_PSEL_OUT_CONNECT_Disconnected << PWM_PSEL_OUT_CONNECT_Pos) ) {
8787
logger.printf(" %02x", r & 0x1F);
8888
} else {

0 commit comments

Comments
 (0)