diff options
author | Keith Packard <keithp@keithp.com> | 2011-01-07 20:26:39 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-01-07 20:26:39 -0800 |
commit | 52ac83fedbfd380d14d4df2e79992bbdfba3552a (patch) | |
tree | d7d9d74d72060de6066a83c3e275469e3b0c5d74 /src/ao_log.c | |
parent | 00891b40754962ef6530b237ef52017bb58112d5 (diff) |
altos: Check for full log and complain
Reports special tone along with the continuity checks.
Reports flight 0 in telemetry.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/ao_log.c')
-rw-r--r-- | src/ao_log.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/ao_log.c b/src/ao_log.c index 55b9dfff..ba019992 100644 --- a/src/ao_log.c +++ b/src/ao_log.c @@ -315,6 +315,12 @@ ao_log_present(void) return ao_log_max_flight() != 0; } +uint8_t +ao_log_full(void) +{ + return ao_log_current_pos == ao_log_end_pos; +} + static __xdata struct ao_task ao_log_task; void |