altos: Allow AO_CONFIG_MAX_SIZE to be configured. Validate it.
authorKeith Packard <keithp@keithp.com>
Sat, 7 Jun 2014 17:05:21 +0000 (10:05 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 7 Jun 2014 17:05:21 +0000 (10:05 -0700)
commitb8a29d65ec605a995de1d1ec8b110d620d2f7a87
tree20efcc2cbf36da92cb52409b0951ac6a6536aea5
parent1873d539a8f1a0e1e8ad539af5d49a77a129b928
altos: Allow AO_CONFIG_MAX_SIZE to be configured. Validate it.

TeleMega config is 200 bytes. AO_CONFIG_MAX_SIZE was 128. That didn't
work out well when logging erased flight information. Allow TeleMega
to use a larger value (1k), and then do a compiler hack to make sure
the defined value is at least as large as the ao_config structure.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_config.h