changeset 326:2559a3f0f1f2

Merged in janlmulder/ostc4/fix-batt-1 (pull request #29) trival bugfix: implement battery at end in dive header
author heinrichsweikamp <bitbucket@heinrichsweikamp.com>
date Mon, 01 Jul 2019 14:18:39 +0000
parents d4d8d717e9a7 (current diff) 8e62f4701676 (diff)
children abec171c2c4b 39f146ccdb1b
files
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Discovery/Src/logbook.c	Sun Jun 30 22:12:15 2019 +0200
+++ b/Discovery/Src/logbook.c	Mon Jul 01 14:18:39 2019 +0000
@@ -1201,6 +1201,7 @@
 		logbook_SetMaxCNS(pStateReal->lifeData.cns);
 		logbook_SetCompartmentDesaturation(pStateReal);
 		logbook_SetLastStop(pStateReal->diveSettings.last_stop_depth_bar);
+		header.batteryVoltage = pStateReal->lifeData.battery_voltage * 1000;
 		logbook_EndDive();
 		bDiveMode = 0;
 	} else