diff Small_CPU/Src/batteryGasGauge.c @ 662:1b995079c045 Betatest

PSCR Mode
author heinrichs weikamp
date Tue, 14 Dec 2021 15:36:10 +0100
parents aa286a4926c2
children 079bb5b22c06
line wrap: on
line diff
--- a/Small_CPU/Src/batteryGasGauge.c	Mon Nov 01 12:39:34 2021 +0100
+++ b/Small_CPU/Src/batteryGasGauge.c	Tue Dec 14 15:36:10 2021 +0100
@@ -28,7 +28,7 @@
 #include "stm32f4xx_hal.h"
 #include "i2c.h"
 
-static float battery_f_voltage = 6.0;		/* max assumed voltage */
+static float battery_f_voltage = BATTERY_DEFAULT_VOLTAGE;		/* max assumed voltage */
 static float battery_f_charge_percent = 0;
 
 #define BGG_BATTERY_OFFSET          (26123)  //; 65536-(3,35Ah/0,085mAh)