check DEBUG flag before pulling in sersendf_P

This commit is contained in:
Michael Moon 2010-11-08 18:26:33 +11:00
parent 3e22da35ae
commit be0a0134c8
1 changed files with 2 additions and 0 deletions

View File

@ -161,8 +161,10 @@ void heater_set(uint8_t index, uint8_t value) {
#if NUM_HEATERS > 0
if (heaters[index].heater_pwm) {
*(heaters[index].heater_pwm) = value;
#ifdef DEBUG
if (debug_flags & DEBUG_PID)
sersendf_P(PSTR("PWM{%u = %u}\n"), index, OCR0A);
#endif
}
else {
if (value >= 8)