diff options
Diffstat (limited to 'flash.c')
-rw-r--r-- | flash.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -20,7 +20,7 @@ void writeUserBlock(FlashStruct *mem, int addr, int numbytes) // so that entire struct will be written, // instead of just the requested range - // All writing should be done in a super-safe + // All writing should be done in a super-safe // way. Non-corruption, even during a power-off transient, // is the priority here. We do not want instruments // losing configuration data ever, because that @@ -29,7 +29,9 @@ void writeUserBlock(FlashStruct *mem, int addr, int numbytes) void initFlash(FlashStruct *mem) { - if (readUserBlock(mem) > 0) return; + if (readUserBlock(mem) > 0) { + return; + } // uninitialized device! mem->flash_start = (char) 99; |