summaryrefslogtreecommitdiff
path: root/Tonokip_Firmware
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-04-22 12:21:59 +0200
committerkliment <kliment.yanev@gmail.com>2011-04-22 12:21:59 +0200
commit218d454bf4e8f84b81cde738a401d51f260e85a0 (patch)
tree05f9ced6500149fd4c98ee4e4cb7ad6cb13568c5 /Tonokip_Firmware
parentf1a2e54b12d5b67afbdd6dd7cd820c60533910ae (diff)
Do not include max6675 functions if they are not in use
Diffstat (limited to 'Tonokip_Firmware')
-rw-r--r--Tonokip_Firmware/Tonokip_Firmware.pde4
1 files changed, 2 insertions, 2 deletions
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