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 51b5a22 commit 73689a3Copy full SHA for 73689a3
cores/arduino/wiring.c
@@ -430,7 +430,7 @@ void init()
430
PORTMUX.TCAROUTEA = PORTMUX_TCA0_PORTB_gc;
431
432
/* Setup timers for single slope PWM, but do not enable, will do in analogWrite() */
433
- TCA0.SINGLE.CTRLB |= (TCA_SINGLE_WGMODE_SINGLESLOPE_gc);
+ TCA0.SINGLE.CTRLB = TCA_SINGLE_WGMODE_SINGLESLOPE_gc;
434
435
/* Period setting, 16 bit register but val resolution is 8 bit */
436
TCA0.SINGLE.PER = PWM_TIMER_PERIOD;
0 commit comments