Rename ADC callback

This commit is contained in:
Yuri D'Elia 2022-05-24 18:43:33 +02:00
parent bcd8496113
commit 7d82cd641e
2 changed files with 2 additions and 2 deletions

View file

@ -21,7 +21,7 @@
#define ADC_CHAN_CNT 8 //number of used channels) #define ADC_CHAN_CNT 8 //number of used channels)
#endif //!IR_SENSOR_ANALOG #endif //!IR_SENSOR_ANALOG
#define ADC_OVRSAMPL 16 //oversampling multiplier #define ADC_OVRSAMPL 16 //oversampling multiplier
#define ADC_CALLBACK adc_ready //callback function () #define ADC_CALLBACK adc_callback //callback function ()
//SWI2C configuration //SWI2C configuration
//#define SWI2C_SDA 20 //SDA on P3 //#define SWI2C_SDA 20 //SDA on P3

View file

@ -2030,7 +2030,7 @@ float current_temperature_ambient_isr;
#endif #endif
// ISR callback from adc when sampling finished // 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_raw[0] = adc_values[ADC_PIN_IDX(TEMP_0_PIN)]; //heater
current_temperature_bed_raw = adc_values[ADC_PIN_IDX(TEMP_BED_PIN)]; current_temperature_bed_raw = adc_values[ADC_PIN_IDX(TEMP_BED_PIN)];