check DEBUG flag before pulling in sersendf_P
This commit is contained in:
parent
3e22da35ae
commit
be0a0134c8
2
heater.c
2
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue