Replace ADC with HAL_READ_ADC
This commit is contained in:
parent
53730be606
commit
8e987023e1
@ -2128,7 +2128,7 @@ void Temperature::isr() {
|
|||||||
HAL_START_ADC(TEMP_CHAMBER_PIN);
|
HAL_START_ADC(TEMP_CHAMBER_PIN);
|
||||||
break;
|
break;
|
||||||
case MeasureTemp_CHAMBER:
|
case MeasureTemp_CHAMBER:
|
||||||
raw_temp_chamber_value += ADC;
|
raw_temp_chamber_value += HAL_READ_ADC;
|
||||||
break;
|
break;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -2186,7 +2186,7 @@ void Temperature::isr() {
|
|||||||
break;
|
break;
|
||||||
case Measure_ADC_KEY:
|
case Measure_ADC_KEY:
|
||||||
if (ADCKey_count < 16) {
|
if (ADCKey_count < 16) {
|
||||||
raw_ADCKey_value = ADC;
|
raw_ADCKey_value = HAL_READ_ADC;
|
||||||
if (raw_ADCKey_value > 900) {
|
if (raw_ADCKey_value > 900) {
|
||||||
//ADC Key release
|
//ADC Key release
|
||||||
ADCKey_count = 0;
|
ADCKey_count = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user