Skip to content

Commit 0c9bb34

Browse files
committed
DM: fix pwm initialization bug
1 parent c7fa463 commit 0c9bb34

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

cores/arduino/wiring_analog.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -558,7 +558,6 @@ void analogWrite(uint32_t pin, uint32_t value)
558558

559559
if (!tcEnabled[tcNum]) {
560560
tcEnabled[tcNum] = true;
561-
value = mapResolution(value, _writeResolution, 16);
562561
uint16_t GCLK_CLKCTRL_IDs[] = {
563562
GCLK_CLKCTRL_ID(GCM_TCC0_TCC1), // TCC0
564563
GCLK_CLKCTRL_ID(GCM_TCC0_TCC1), // TCC1

0 commit comments

Comments
 (0)