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>
|
|
||
1594 |
|
1594 |
|
1595 |
|
1595 |
|
1596 |
|
1596 |
|
1597 |
|
|
|
1598 |
|
|
|
1599 |
|
|
|
1600 |
|
|
|
|
1597 |
|
|
|
1598 |
|
|
|
1599 |
|
|
|
1600 |
|
|
|
1601 |
|
|
1601 |
|
1602 |
|
1602 |
|
1603 |
|
1603 |
|
|
|
1604 |
|
|
|
1605 |
|
|
|
1606 |
|
1604 |
|
1607 |
|
|
|
1608 |
|
|
|
1609 |
|
|
|
1610 |
|
|
|
1611 |
|
|
|
1612 |
|
|
|
1613 |
|
|
|
1614 |
|
|
|
1615 |
|
|
|
|
1605 |
|
|
|
1606 |
|
|
1616 |
|
1607 |
|
1617 |
|
|
|
1618 |
|
|
|
|
1608 |
|
|
|
1609 |
|
|
|
1610 |
|
|
1619 |
|
1611 |
|
1620 |
|
|
|
1621 |
|
|
|
|
1612 |
|
|
|
1613 |
|
|
|
1614 |
|
|
|
1615 |
|
|
|
1616 |
|
|
|
1617 |
|
|
|
1618 |
|
|
|
1619 |
|
|
|
1620 |
|
|
|
1621 |
|
|
|
1622 |
|
|
1622 |
|
1623 |
|
1623 |
|
|
|
|
1624 |
|
|
1624 |
|
1625 |
|
1625 |
|
1626 |
|
1626 |
|
1627 |
|