Browse Source
After wraparound, pwm_count <= pwm_mask holds, thus soft_pwm_X <= pwm_count guarantees soft_pwm_X < pwm_mask is true, and the heater will be switched off in the first branch. Do not evaluate the pwm conditions a second time, this reduces the instruction count (4 instructions per PWM) and text size (6 byte). Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>pull/1/head
committed by
Scott Lahteine
1 changed files with 22 additions and 21 deletions
Loading…
Reference in new issue