# HG changeset patch
# User Ideenmodellierer
# Date 1585511700 -7200
# Node ID 2effe85f1a9be3b3de7aa2832f95a8ab772b1720
# Parent  7ac0e76dbd6a5d57879f67891a0bc60265aef925# Parent  9a9e4908ce2e2194357380c4b20081b18c00251a
merged default into minor_improvments

diff -r 7ac0e76dbd6a -r 2effe85f1a9b Discovery/Src/externLogbookFlash.c
--- a/Discovery/Src/externLogbookFlash.c	Sun Mar 29 21:39:57 2020 +0200
+++ b/Discovery/Src/externLogbookFlash.c	Sun Mar 29 21:55:00 2020 +0200
@@ -1443,7 +1443,7 @@
   /* TODO Cleanup_Ref_1: cleanup logFlashNextSampleStartAddress and lastDiveLogId */
   /* The implementation below would cause problems in case more then 254 dives would be done. */
   /* This is avoided by Cleanup_Ref2 */
-  for(id = 0; id < 255;id++)
+  for(id = 0; id <= 255;id++)
   {
     actualAddress = HEADERSTART + (0x800 * id) + HEADER2OFFSET;
     ext_flash_read_block_start();