diff Discovery/Src/tComm.c @ 1017:5924a2d1d3ba GasConsumption

Prepare custom block update function: In the flash area of the font lib some sectors may be used for custom data or a boot updater image. With this change a flash option is added to the maintainance menu. IMPORTANT: The fimwareEraseProgram.c is needed for compiling the firmware now => Add it e.g. by adding a link from the OtherSources location to your source folder.
author Ideenmodellierer
date Thu, 29 May 2025 22:04:46 +0200
parents 3123aa8723fd
children ca713e199f22
line wrap: on
line diff
--- a/Discovery/Src/tComm.c	Sun May 11 16:18:20 2025 +0200
+++ b/Discovery/Src/tComm.c	Thu May 29 22:04:46 2025 +0200
@@ -1572,7 +1572,10 @@
 
     // neu 110212
     if(id == id_FONT)
+    {
         offsetTotal = 256 * 256 * 256 * (uint32_t)sBuffer[1] +  256 * 256 * (uint32_t)sBuffer[2] + 256 * (uint32_t)sBuffer[3];
+       /* todo set offset depending on font version offsetTotal = 0; */
+    }
     else
         offsetTotal = 256 * 256 * 256 * (uint32_t)sBuffer[0] +  256 * 256 * (uint32_t)sBuffer[1] + 256 * (uint32_t)sBuffer[2] + sBuffer[3];