simplified config file comments, fixed settings not peristed, fixed F407 flash code
This commit is contained in:
@@ -52,10 +52,13 @@ static void jumper_changed(void)
|
||||
dbg("LOCK jumper removed, enabling MSC!");
|
||||
} else {
|
||||
// Lock
|
||||
dbg("LOCK jumper replaced, saving to Flash & disabling MSC!");
|
||||
dbg("LOCK jumper replaced, disabling MSC!");
|
||||
|
||||
if (SystemSettings.modified) {
|
||||
dbg("Saving settings to Flash...");
|
||||
settings_save();
|
||||
} else {
|
||||
dbg("No changes to save.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -180,7 +180,7 @@
|
||||
// size, determines position of the flash storage
|
||||
|
||||
// we use the first 128kB sector. Unfortunately the whole sector must be erased before writing.
|
||||
#define SETTINGS_FLASH_SECTOR 6
|
||||
#define SETTINGS_FLASH_SECTOR FLASH_SECTOR_5
|
||||
#define SETTINGS_BLOCK_SIZE (1024*2)
|
||||
#define SETTINGS_FLASH_ADDR (0x08000000 + (16*4+64)*1024)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user