Revert "heater.h: simplify macros.", as there are in fact situations

where this seemingly obsolete code makes sense.

This reverts commit 896f6e140f.
This commit is contained in:
Markus Hitter 2010-10-08 12:49:02 +02:00
parent 90c00d0eff
commit 80d3fc5233
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@
#ifdef HEATER_PIN
#ifdef HEATER_PWM
#define enable_heater() { TCCR0A |= MASK(COM0A1); }
#define disable_heater() { TCCR0A &= ~MASK(COM0A1); }
#define enable_heater() do { TCCR0A |= MASK(COM0A1); } while (0)
#define disable_heater() do { TCCR0A &= ~MASK(COM0A1); } while (0)
#else
#define enable_heater() WRITE(HEATER_PIN, 1)
#define disable_heater() WRITE(HEATER_PIN, 0)