# HG changeset patch # User Ideenmodellierer # Date 1760381665 -7200 # Node ID 74be24428049064b8baaef5ab9e422a7c2635400 # Parent f8e2895c91e55a70b265a314cfddbc5308d3bcbf Bugfix Fontpack update for large blocks: The update of a font pack with a size > 768000 byte was interrupted and a manuel switch to bootloader had to be performed to get the font pack flashed. Rootcause was a missing address adjustment during the block read back function which caused a false error detection. Blocks > 768000 are read in two step while only one buffer is used for comparation. To fill the correct data into this buffer a dummy read of the flash data was added to get the data pointers to the correct offset. Another bug was regardings the read back itself where only the first byte was checked. After array indexing the complete buffer is noch verified. diff -r f8e2895c91e5 -r 74be24428049 Discovery/Src/externLogbookFlash.c --- a/Discovery/Src/externLogbookFlash.c Mon Oct 13 15:44:12 2025 +0200 +++ b/Discovery/Src/externLogbookFlash.c Mon Oct 13 20:54:25 2025 +0200 @@ -334,7 +334,11 @@ } else if(pSample2) { - actualAddress += length1; + /* actualAddress += length1; do dummy read to get EEPROM to the correct address */ + for(uint32_t i = 0; i