diff options
author | kliment <kliment.yanev@gmail.com> | 2011-07-11 15:56:17 +0200 |
---|---|---|
committer | kliment <kliment.yanev@gmail.com> | 2011-07-11 15:56:17 +0200 |
commit | 1c4cbe4da712fd670abb56ee2c2d0b48ec8d14c4 (patch) | |
tree | a3c368d1705a99f382ca3c069fcbb04b6a9368da | |
parent | 14939da092feb1a5efa053dae530de77bab99a8d (diff) |
Fix for AD595 as bed temp sensor
-rw-r--r-- | Sprinter/Sprinter.pde | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Sprinter/Sprinter.pde b/Sprinter/Sprinter.pde index 45b68da..1aa91f7 100644 --- a/Sprinter/Sprinter.pde +++ b/Sprinter/Sprinter.pde @@ -667,16 +667,16 @@ inline void process_commands() if (code_seen('S')) target_bed_raw = temp2analogBed(code_value()); break; case 105: // M105 - #if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675) + #if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675)|| defined HEATER_USES_AD595 tt = analog2temp(current_raw); #endif - #if TEMP_1_PIN > -1 + #if TEMP_1_PIN > -1 || defined BED_USES_AD595 bt = analog2tempBed(current_bed_raw); #endif - #if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675) + #if (TEMP_0_PIN > -1) || defined (HEATER_USES_MAX6675) || defined HEATER_USES_AD595 Serial.print("ok T:"); Serial.print(tt); - #if TEMP_1_PIN > -1 + #if TEMP_1_PIN > -1 || defined BED_USES_AD595 Serial.print(" B:"); Serial.println(bt); #else |