summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-07-16 21:58:17 +0200
committerkliment <kliment.yanev@gmail.com>2011-07-16 21:58:17 +0200
commit3c44f0b3e3263e8c335b2f0c67743c60a4f4a9da (patch)
tree672f9bcf52cab51876dff3f56eb73bb759068d9f /Sprinter
parent9c247a305c830530c09a822b69c685b02abecfbe (diff)
Ignore bedtemp if no bed temp pin defined
Diffstat (limited to 'Sprinter')
-rw-r--r--Sprinter/Sprinter.pde4
1 files changed, 3 insertions, 1 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde
index 7e2a4fa..4be4788 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -663,7 +663,9 @@ inline void process_commands()
#endif
break;
case 140: // M140 set bed temp
- if (code_seen('S')) target_bed_raw = temp2analogBed(code_value());
+ #if TEMP_1_PIN > -1 || defined BED_USES_AD595
+ if (code_seen('S')) target_bed_raw = temp2analogBed(code_value());
+ #endif
break;
case 105: // M105
#if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675)|| defined HEATER_USES_AD595