Always define old_z, not always z2

This commit is contained in:
Scott Lahteine 2015-04-14 04:55:20 -07:00
parent 5dd87d2e74
commit 7336e6df07

View file

@ -99,9 +99,10 @@ static volatile bool endstop_z_probe_hit = false; // Leaving this in even if Z_P
static bool old_y_max_endstop = false; static bool old_y_max_endstop = false;
#endif #endif
static bool old_z_min_endstop = false;
static bool old_z_max_endstop = false;
#ifdef Z_DUAL_ENDSTOPS #ifdef Z_DUAL_ENDSTOPS
static bool old_z_min_endstop = false;
static bool old_z_max_endstop = false;
static bool old_z2_min_endstop = false; static bool old_z2_min_endstop = false;
static bool old_z2_max_endstop = false; static bool old_z2_max_endstop = false;
#endif #endif