Fix for 03962 board
This commit is contained in:
parent
5ebbd6377c
commit
53c6bbcb6c
1 changed files with 4 additions and 0 deletions
|
@ -50,6 +50,10 @@ float fetchWindspeed() {
|
|||
float getBatteryVoltage() {
|
||||
uint16_t raw = analogRead(A0);
|
||||
float volt = raw / 1023.0;
|
||||
#ifdef BOARD_03962A
|
||||
return volt * 6.79;
|
||||
#else
|
||||
return volt * 4.0;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue