Browse Source

Merge pull request #1491 from XPila/MK3-bed_fast_pwm

HW pwm fix
PavelSindler 5 years ago
parent
commit
b24cd58a50
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Firmware/timer02.c

+ 1 - 0
Firmware/timer02.c

@@ -22,6 +22,7 @@ void timer02_set_pwm0(uint8_t pwm0)
 		TCCR0A &= ~(2 << COM0B0);
 		OCR0B = 0;
 	}
+	timer02_pwm0 = pwm0;
 }
 
 void timer02_init(void)