diff --git a/Firmware/config.h b/Firmware/config.h index d23132bd..28b85a10 100644 --- a/Firmware/config.h +++ b/Firmware/config.h @@ -21,7 +21,7 @@ #define ADC_CHAN_CNT 8 //number of used channels) #endif //!IR_SENSOR_ANALOG #define ADC_OVRSAMPL 16 //oversampling multiplier -#define ADC_CALLBACK adc_ready //callback function () +#define ADC_CALLBACK adc_callback //callback function () //SWI2C configuration //#define SWI2C_SDA 20 //SDA on P3 diff --git a/Firmware/temperature.cpp b/Firmware/temperature.cpp index 5e23b4dc..d0ce9221 100755 --- a/Firmware/temperature.cpp +++ b/Firmware/temperature.cpp @@ -2030,7 +2030,7 @@ float current_temperature_ambient_isr; #endif // ISR callback from adc when sampling finished -void adc_ready() +void adc_callback() { current_temperature_raw[0] = adc_values[ADC_PIN_IDX(TEMP_0_PIN)]; //heater current_temperature_bed_raw = adc_values[ADC_PIN_IDX(TEMP_BED_PIN)];