Fix error in safety ADC

This commit is contained in:
Mario Hüttel 2020-06-01 22:59:27 +02:00
parent f493b823b3
commit 76f5a4e9be
2 changed files with 2 additions and 1 deletions

View File

@ -37,6 +37,7 @@ enum safety_adc_check_result {
SAFETY_ADC_CHECK_VREF_HIGH = (1U<<1), SAFETY_ADC_CHECK_VREF_HIGH = (1U<<1),
SAFETY_ADC_CHECK_TEMP_LOW = (1U<<2), SAFETY_ADC_CHECK_TEMP_LOW = (1U<<2),
SAFETY_ADC_CHECK_TEMP_HIGH = (1U<<3), SAFETY_ADC_CHECK_TEMP_HIGH = (1U<<3),
SAFETY_ADC_INTERNAL_ERROR = (1U<<4),
}; };
void safety_adc_init(); void safety_adc_init();

View File

@ -132,7 +132,7 @@ enum safety_adc_check_result handle_safety_adc()
break; break;
default: default:
safety_meas_channel = SAFETY_ADC_MEAS_VREF; safety_meas_channel = SAFETY_ADC_MEAS_VREF;
return -2000; return SAFETY_ADC_INTERNAL_ERROR;
} }
} }