Module17: set threshold for detection of hardware rev 0.1e to 3V

pull/147/head
Silvano Seva 2023-07-13 09:12:45 +02:00
rodzic 933d291154
commit 6d58230c8c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -82,10 +82,10 @@ void platform_init()
/*
* Hardware version is set using a voltage divider on PA3.
* - 0V: rev. 0.1d or lower
* - 2.6V: rev 0.1e
* - 3.3V: rev 0.1e
*/
uint16_t ver = adc1_getMeasurement(ADC_HWVER_CH);
if(ver >= 2500)
if(ver >= 3000)
hwInfo.hw_version = 1;
}