Explorar el Código

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 hace 3 años
padre
commit
dbd3b2586b
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Firmware/temperature.cpp

+ 2 - 2
Firmware/temperature.cpp

@@ -1430,7 +1430,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 
@@ -1663,7 +1663,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