summaryrefslogtreecommitdiff
path: root/ao_ee.c
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2009-04-26 00:11:32 -0700
committerKeith Packard <keithp@keithp.com>2009-04-26 00:11:32 -0700
commit38a0b61b0a0b3c00f064c8d562950a17a6ddff4a (patch)
treeee099db3cfa30d5fe7a94523fe1e7a46f64d238d /ao_ee.c
parentc65f1a1acd2ca00758833cec5d3f8056d303d3e2 (diff)
Add configuration support
Current config variables: Main deploy altitude above launch (in meters) Acceleration zero g calibration (manual or automatic) Radio channel (freq = 435.550MHz + channel * 100kHz) Callsign (max 8 characters) Supporting this involved shuffling code around so that the non-telemetrum builds could include only the stuff they needed.
Diffstat (limited to 'ao_ee.c')
-rw-r--r--ao_ee.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ao_ee.c b/ao_ee.c
index bce293cd..a0f2e23a 100644
--- a/ao_ee.c
+++ b/ao_ee.c
@@ -331,6 +331,7 @@ ao_ee_write_config(uint8_t *buf, uint16_t len) __reentrant
ao_ee_fill(AO_EE_CONFIG_BLOCK);
memcpy(ao_ee_data, buf, len);
ao_ee_block_dirty = 1;
+ ao_ee_flush_internal();
} ao_mutex_put(&ao_ee_mutex);
return 1;
}