This commit is contained in:
Inamr 2024-03-26 13:35:36 +01:00
parent be82194a6d
commit c189291012

View File

@ -40,14 +40,14 @@ uint16_t internal_voltage_read() {
VREF.ADC0REF = VREF_REFSEL_VDD_gc; VREF.ADC0REF = VREF_REFSEL_VDD_gc;
} }
uint16_t diode_voltage_read(void){ uint16_t diode_voltage_read(){
/* Gets value for the diode */ /* Gets value for the diode */
uint8_t adcVal = ADC0_read(); uint8_t adcVal = ADC0_read();
return adcVal; return adcVal;
} }
uint16_t internal_voltage_read(void) { uint16_t internal_voltage_read() {
/* Gets value for the internal voltage reffreance*/ /* Gets value for the internal voltage reffreance*/
VREF.ADC0REF = VREF_REFSEL_VDD_gc; VREF.ADC0REF = VREF_REFSEL_VDD_gc;
return VREF_REFSEL_VDD_gc;
} }