diff options
author | Keith Packard <keithp@keithp.com> | 2017-11-11 20:50:45 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-11-11 20:50:45 -0800 |
commit | f3b279141cd30ad6a212ce75f5a7c2b8e3d33870 (patch) | |
tree | 3796b9f63f0d20c3a3f19fb5c512cc337997d64a /src/kernel | |
parent | 9a7b4f02ad32ca43a45ed9fe446b8db96e60b5e5 (diff) |
altos: Fix inverted test for corrupt flight log
Was reporting correct flight log as corrupted. Oops.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/ao_log.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/ao_log.c b/src/kernel/ao_log.c index 08af5b58..f70c7232 100644 --- a/src/kernel/ao_log.c +++ b/src/kernel/ao_log.c @@ -183,7 +183,7 @@ ao_log_flight(uint8_t slot) if (ao_log_check_clear()) return 0; - if (ao_log_check_data() || log.type != AO_LOG_FLIGHT) + if (!ao_log_check_data() || log.type != AO_LOG_FLIGHT) return -(int16_t) (slot + 1); return log.u.flight.flight; |