summaryrefslogtreecommitdiff
path: root/Sprinter
diff options
context:
space:
mode:
authorkliment <kliment.yanev@gmail.com>2011-07-16 21:59:32 +0200
committerkliment <kliment.yanev@gmail.com>2011-07-16 21:59:32 +0200
commit2f2839b35a8d16db92f6beddb8cdf3c7a086668e (patch)
tree5e178dcc965c49d89175a5e426ec818e6a1d7b46 /Sprinter
parent087446265503c03202fe363ee08458e929f94716 (diff)
parent3c44f0b3e3263e8c335b2f0c67743c60a4f4a9da (diff)
Merge branch 'master' into experimental
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 0406d73..3e5fa1e 100644
--- a/Sprinter/Sprinter.pde
+++ b/Sprinter/Sprinter.pde
@@ -733,7 +733,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