Revert and extend previous change pin check change

Reviert previous change of #if BLAH_PIN > 0 to #if defined(BLAH_PIN) &&
BLAH_PIN > -1. Unfortunately some times pin 0 is used. For my sins I've
gone through and replaced all unsafe checks of #if BLAH_PIN > -1 with
the safe version.
This commit is contained in:
Robert F-C
2013-05-22 21:33:23 +10:00
parent 440cf2bc10
commit 40eb07bad4
7 changed files with 135 additions and 133 deletions

View File

@ -472,7 +472,7 @@ void check_axes_activity()
disable_e1();
disable_e2();
}
#if FAN_PIN > -1
#if defined(FAN_PIN) && FAN_PIN > -1
#ifndef FAN_SOFT_PWM
#ifdef FAN_KICKSTART_TIME
static unsigned long fan_kick_end;
@ -496,11 +496,11 @@ void check_axes_activity()
#endif
#ifdef BARICUDA
#if HEATER_1_PIN > -1
#if defined(HEATER_1_PIN) && HEATER_1_PIN > -1
analogWrite(HEATER_1_PIN,tail_valve_pressure);
#endif
#if HEATER_2_PIN > -1
#if defined(HEATER_2_PIN) && HEATER_2_PIN > -1
analogWrite(HEATER_2_PIN,tail_e_to_p_pressure);
#endif
#endif