diff --git a/prosjekt.X/voltage.c b/prosjekt.X/voltage.c index 6366edd..8c43dfd 100644 --- a/prosjekt.X/voltage.c +++ b/prosjekt.X/voltage.c @@ -40,14 +40,14 @@ uint16_t internal_voltage_read() { VREF.ADC0REF = VREF_REFSEL_VDD_gc; } -uint16_t diode_voltage_read(void){ +uint16_t diode_voltage_read(){ /* Gets value for the diode */ uint8_t adcVal = ADC0_read(); return adcVal; } -uint16_t internal_voltage_read(void) { +uint16_t internal_voltage_read() { /* Gets value for the internal voltage reffreance*/ VREF.ADC0REF = VREF_REFSEL_VDD_gc; - + return VREF_REFSEL_VDD_gc; } \ No newline at end of file