From: Keith Packard Date: Sat, 2 Jun 2012 02:33:18 +0000 (-0700) Subject: altos: Mark full and mega logging correctly in 'v' command X-Git-Tag: 1.0.9.6~138 X-Git-Url: https://git.gag.com/?p=fw%2Faltos;a=commitdiff_plain;h=e5aebfe0203de9e69712fac291c8cd0d3a96a385 altos: Mark full and mega logging correctly in 'v' command Make sure megametrum reports 'log format 5'. Signed-off-by: Keith Packard --- diff --git a/src/core/ao_log.c b/src/core/ao_log.c index d696625e..7884ec3c 100644 --- a/src/core/ao_log.c +++ b/src/core/ao_log.c @@ -25,8 +25,6 @@ __xdata uint8_t ao_log_running; __pdata enum ao_flight_state ao_log_state; __xdata uint16_t ao_flight_number; -__code uint8_t ao_log_format = AO_LOG_FORMAT_FULL; - void ao_log_flush(void) { diff --git a/src/core/ao_log_big.c b/src/core/ao_log_big.c index 50eca069..db01f46c 100644 --- a/src/core/ao_log_big.c +++ b/src/core/ao_log_big.c @@ -20,6 +20,8 @@ static __xdata uint8_t ao_log_mutex; static __xdata struct ao_log_record log; +__code uint8_t ao_log_format = AO_LOG_FORMAT_FULL; + static uint8_t ao_log_csum(__xdata uint8_t *b) __reentrant { diff --git a/src/core/ao_log_mega.c b/src/core/ao_log_mega.c index 1763b9eb..404e6bf7 100644 --- a/src/core/ao_log_mega.c +++ b/src/core/ao_log_mega.c @@ -23,6 +23,8 @@ static __xdata uint8_t ao_log_mutex; static __xdata struct ao_log_mega log; +__code uint8_t ao_log_format = AO_LOG_FORMAT_MEGAMETRUM; + static uint8_t ao_log_csum(__xdata uint8_t *b) __reentrant {