Browse Source

Fix for 03962 board

klaute 1 year ago
parent
commit
53c6bbcb6c
1 changed files with 4 additions and 0 deletions
  1. 4
    0
      firmware/sensors.ino

+ 4
- 0
firmware/sensors.ino View File

@@ -50,6 +50,10 @@ float fetchWindspeed() {
50 50
 float getBatteryVoltage() {
51 51
   uint16_t raw = analogRead(A0);
52 52
   float volt = raw / 1023.0;
53
+#ifdef BOARD_03962A
53 54
   return volt * 6.79;
55
+#else
56
+  return volt * 4.0;
57
+#endif
54 58
 }
55 59
 

Loading…
Cancel
Save