# HG changeset patch
# User ideenmodellierer
# Date 1590520392 -7200
# Node ID 3db9eba89e3ce8b705ac3f29667010742353c944
# Parent  7a17bfc932b6cdc10be09e50ccf318ac24d1e715
Bugfix header EEPROM layout:
Batterycharge was added to the header memory structure which is also used to store data in EEPROM => Information read from EEPROM which were created before the change was not read out correct.
To avoid this problem and to keep the layout consistent a not used data item has been changed to the new batterycharge value

diff -r 7a17bfc932b6 -r 3db9eba89e3c Discovery/Inc/logbook.h
--- a/Discovery/Inc/logbook.h	Tue May 26 21:13:00 2020 +0200
+++ b/Discovery/Inc/logbook.h	Tue May 26 21:13:12 2020 +0200
@@ -75,7 +75,6 @@
     uint8_t  gfAtBeginning;
     uint8_t  gfAtEnd;
     uint16_t personalDiveCount;
-    uint8_t  batteryCharge;
     SSetpointLog setpoint[NUM_GAS];
     uint16_t maxCNS;
     uint16_t averageDepth_mbar;
@@ -94,7 +93,8 @@
     uint8_t  diveMode;
     uint8_t  hwHudLastStatus; /* from here on identical to OSTC3 again */
     uint16_t hwHudBattery_mV;
-    uint8_t batteryGaugeRegisters[6];
+    uint8_t batteryGaugeRegisters[5];	/* former batteryGaugeRegisters (6 Bytes) which were not used => use as reserve to keep memory layout */
+    uint8_t batteryCharge;				/* first reuse byte */
     uint16_t diveHeaderEnd;
 } SLogbookHeader;