projects
/
fw
/
altos
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9a7b4f0
)
altos: Fix inverted test for corrupt flight log
author
Keith Packard
<keithp@keithp.com>
Sun, 12 Nov 2017 04:50:45 +0000
(20:50 -0800)
committer
Keith Packard
<keithp@keithp.com>
Sun, 12 Nov 2017 04:50:45 +0000
(20:50 -0800)
Was reporting correct flight log as corrupted. Oops.
Signed-off-by: Keith Packard <keithp@keithp.com>
src/kernel/ao_log.c
patch
|
blob
|
history
diff --git
a/src/kernel/ao_log.c
b/src/kernel/ao_log.c
index 08af5b583028b04903bf8ede5dd62e9c677f9e64..f70c723296afb753b930546553cc6ceee44c6792 100644
(file)
--- 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_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;
return -(int16_t) (slot + 1);
return log.u.flight.flight;