Fix for 03962 board

This commit is contained in:
klaute 2019-01-06 15:21:59 +01:00
parent 5ebbd6377c
commit 53c6bbcb6c

View file

@ -50,6 +50,10 @@ float fetchWindspeed() {
float getBatteryVoltage() { float getBatteryVoltage() {
uint16_t raw = analogRead(A0); uint16_t raw = analogRead(A0);
float volt = raw / 1023.0; float volt = raw / 1023.0;
#ifdef BOARD_03962A
return volt * 6.79; return volt * 6.79;
#else
return volt * 4.0;
#endif
} }