Fix for AD595 as bed temp sensor
This commit is contained in:
parent
14939da092
commit
1c4cbe4da7
1 changed files with 4 additions and 4 deletions
|
|
@ -667,16 +667,16 @@ inline void process_commands()
|
||||||
if (code_seen('S')) target_bed_raw = temp2analogBed(code_value());
|
if (code_seen('S')) target_bed_raw = temp2analogBed(code_value());
|
||||||
break;
|
break;
|
||||||
case 105: // M105
|
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);
|
tt = analog2temp(current_raw);
|
||||||
#endif
|
#endif
|
||||||
#if TEMP_1_PIN > -1
|
#if TEMP_1_PIN > -1 || defined BED_USES_AD595
|
||||||
bt = analog2tempBed(current_bed_raw);
|
bt = analog2tempBed(current_bed_raw);
|
||||||
#endif
|
#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("ok T:");
|
||||||
Serial.print(tt);
|
Serial.print(tt);
|
||||||
#if TEMP_1_PIN > -1
|
#if TEMP_1_PIN > -1 || defined BED_USES_AD595
|
||||||
Serial.print(" B:");
|
Serial.print(" B:");
|
||||||
Serial.println(bt);
|
Serial.println(bt);
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue