summaryrefslogtreecommitdiff
path: root/flash.c
diff options
context:
space:
mode:
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;