From be0a0134c8b6917e023a47ec043839584eb02081 Mon Sep 17 00:00:00 2001 From: Michael Moon Date: Mon, 8 Nov 2010 18:26:33 +1100 Subject: [PATCH] check DEBUG flag before pulling in sersendf_P --- heater.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/heater.c b/heater.c index 94991cf..a5b2dd6 100644 --- a/heater.c +++ b/heater.c @@ -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)