summaryrefslogtreecommitdiff
path: root/flash.c
diff options
context:
space:
mode:
authorMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-17 08:16:16 -0400
committerMichael J. Chudobiak <mjc@avtechpulse.com>2012-08-17 08:16:16 -0400
commitfcb2f1c3eb72ec2a9c8f85edc394efde2c0178c8 (patch)
tree36e4b9066a838e2ffb1af13d0e7b1408f216afda /flash.c
parentb7d456868f90f6c6f763d18922be9f8fe6ce15e6 (diff)
run astyle
Diffstat (limited to 'flash.c')
-rw-r--r--flash.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/flash.c b/flash.c
index ee0ea17..500ad96 100644
--- a/flash.c
+++ b/flash.c
@@ -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;