diff options
author | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-17 08:16:16 -0400 |
---|---|---|
committer | Michael J. Chudobiak <mjc@avtechpulse.com> | 2012-08-17 08:16:16 -0400 |
commit | fcb2f1c3eb72ec2a9c8f85edc394efde2c0178c8 (patch) | |
tree | 36e4b9066a838e2ffb1af13d0e7b1408f216afda /flash.c | |
parent | b7d456868f90f6c6f763d18922be9f8fe6ce15e6 (diff) |
run astyle
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; |