diff Common/Inc/settings.h @ 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 8c0134a287da
children 158100a84ebd
line wrap: on
line diff
--- a/Common/Inc/settings.h	Sun May 11 16:18:20 2025 +0200
+++ b/Common/Inc/settings.h	Thu May 29 22:04:46 2025 +0200
@@ -32,8 +32,7 @@
 
 // From Common/Inc:
 #include "FirmwareData.h"
-
-//#include "data_central.h"
+#include "firmwareEraseProgram.h"
 
 #include "global_constants.h"
 // From Common/Drivers/
@@ -332,33 +331,6 @@
 	uint8_t warningBuzzer;
 } SSettings;
 
-typedef struct
-{
-	// 8 bytes
-	uint16_t primarySerial;
-	uint8_t primaryLicence;
-	uint8_t revision8bit;
-	uint8_t production_year;
-	uint8_t production_month;
-	uint8_t production_day;
-	uint8_t production_bluetooth_name_set;
-
-	// 44 bytes
-	char production_info[44];
-
-	// 8 bytes
-	uint16_t secondarySerial;
-	uint8_t secondaryLicence;
-	uint8_t secondaryReason8bit;
-	uint8_t secondary_year;
-	uint8_t secondary_month;
-	uint8_t secondary_day;
-	uint8_t secondary_bluetooth_name_set;
-
-	// 4 bytes
-	char secondary_info[4];
-} SHardwareData;
-
 uint8_t writeData(uint8_t *);
 uint8_t readData(uint8_t what,uint8_t *);
 uint8_t readDataLimits__8and16BitValues_4and7BytesOutput(uint8_t what, uint8_t * data);