From 218d454bf4e8f84b81cde738a401d51f260e85a0 Mon Sep 17 00:00:00 2001 From: kliment Date: Fri, 22 Apr 2011 12:21:59 +0200 Subject: Do not include max6675 functions if they are not in use --- Tonokip_Firmware/Tonokip_Firmware.pde | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Tonokip_Firmware/Tonokip_Firmware.pde') diff --git a/Tonokip_Firmware/Tonokip_Firmware.pde b/Tonokip_Firmware/Tonokip_Firmware.pde index 0e99ad2..ad26775 100644 --- a/Tonokip_Firmware/Tonokip_Firmware.pde +++ b/Tonokip_Firmware/Tonokip_Firmware.pde @@ -982,7 +982,7 @@ inline void enable_z() { if(Z_ENABLE_PIN > -1) digitalWrite(Z_ENABLE_PIN, Z_ENA inline void enable_e() { if(E_ENABLE_PIN > -1) digitalWrite(E_ENABLE_PIN, E_ENABLE_ON); } #define HEAT_INTERVAL 250 - +#ifdef HEATER_USES_MAX6675 unsigned long max6675_previous_millis = 0; int max6675_temp = 2000; @@ -1035,7 +1035,7 @@ inline int read_max6675() return max6675_temp; } - +#endif inline void manage_heater() { #ifdef HEATER_USES_THERMISTOR -- cgit v1.2.1