projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ao_telemetry: Use int16_t types for telemetry packet intervals
[fw/altos]
/
src
/
kernel
/
ao_log_tiny.c
diff --git
a/src/kernel/ao_log_tiny.c
b/src/kernel/ao_log_tiny.c
index 530031113842fada7915070db8429e00ca394b7c..ccdb3aac38fe8ca63ee70e463de617863a0340a8 100644
(file)
--- a/
src/kernel/ao_log_tiny.c
+++ b/
src/kernel/ao_log_tiny.c
@@
-18,7
+18,7
@@
#include "ao.h"
#include "ao.h"
-static
uint16_t
ao_log_tiny_interval;
+static
AO_TICK_TYPE
ao_log_tiny_interval;
#define AO_LOG_TINY_INTERVAL_DEFAULT AO_MS_TO_TICKS(1000)
#if USE_FAST_ASCENT_LOG
#define AO_LOG_TINY_INTERVAL_DEFAULT AO_MS_TO_TICKS(1000)
#if USE_FAST_ASCENT_LOG
@@
-30,7
+30,7
@@
static uint16_t ao_log_tiny_interval;
#endif
void
#endif
void
-ao_log_tiny_set_interval(
uint16_t
ticks)
+ao_log_tiny_set_interval(
AO_TICK_TYPE
ticks)
{
ao_log_tiny_interval = ticks;
}
{
ao_log_tiny_interval = ticks;
}
@@
-134,7
+134,7
@@
ao_log(void)
* Write out the sample when finished
*/
now = ao_time();
* Write out the sample when finished
*/
now = ao_time();
- if ((
int16_t
) (now - (last_time + ao_log_tiny_interval)) >= 0 && count) {
+ if ((
AO_TICK_SIGNED
) (now - (last_time + ao_log_tiny_interval)) >= 0 && count) {
count = sum / count;
if (ao_log_started)
ao_log_tiny_data(count);
count = sum / count;
if (ao_log_started)
ao_log_tiny_data(count);