simplified config file comments, fixed settings not peristed, fixed F407 flash code

This commit is contained in:
2017-12-17 16:09:07 +01:00
parent 03075bdd5e
commit 803cd57960
8 changed files with 58 additions and 31 deletions
+4 -1
View File
@@ -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.");
}
}
+1 -1
View File
@@ -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)