altos: Mark full and mega logging correctly in 'v' command
authorKeith Packard <keithp@keithp.com>
Sat, 2 Jun 2012 02:33:18 +0000 (19:33 -0700)
committerKeith Packard <keithp@keithp.com>
Sat, 2 Jun 2012 02:33:18 +0000 (19:33 -0700)
Make sure megametrum reports 'log format 5'.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/core/ao_log.c
src/core/ao_log_big.c
src/core/ao_log_mega.c

index d696625efbf79ab5d6b9173bcb35ea63844b2cbe..7884ec3cde155a88102e56db5905f2e57535ae95 100644 (file)
@@ -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)
 {
index 50eca069ea0487f37b9779cf171db0e6a5aa6d8a..db01f46cb6fda3bf4a0d13f2b32e5b2ff6c633f5 100644 (file)
@@ -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
 {
index 1763b9ebac6ad39e88a1b6592b0095d33ce80843..404e6bf7325e10950d4f143b894ad60b821ff61e 100644 (file)
@@ -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
 {