Browse Source

Change hotend temperature sensor from T0 to T1

Custom modification to Einsy Rambo to remove pullup resistor (R36)
on T1 to support AD8495 thermocouple amplifier.
Kevin Lee 3 years ago
parent
commit
d6e1515149
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Firmware/temperature.cpp

+ 2 - 2
Firmware/temperature.cpp

@@ -1449,7 +1449,7 @@ void disable_heater()
    #endif
   #endif
      
-  #if defined(TEMP_1_PIN) && TEMP_1_PIN > -1 && EXTRUDERS > 1
+  #if defined(TEMP_1_PIN) && TEMP_1_PIN > -1 
     target_temperature[1]=0;
     soft_pwm[1]=0;
     #if defined(HEATER_1_PIN) && HEATER_1_PIN > -1 
@@ -1683,7 +1683,7 @@ extern "C" {
 
 void adc_ready(void) //callback from adc when sampling finished
 {
-	current_temperature_raw[0] = adc_values[ADC_PIN_IDX(TEMP_0_PIN)]; //heater
+	current_temperature_raw[0] = adc_values[ADC_PIN_IDX(TEMP_1_PIN)]; //heater
 #ifdef PINDA_THERMISTOR
 	current_temperature_raw_pinda_fast = adc_values[ADC_PIN_IDX(TEMP_PINDA_PIN)];
 #endif //PINDA_THERMISTOR