projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'aprs' into 'master'
[fw/altos]
/
src
/
micropeak
/
ao_report_tiny.c
diff --git
a/src/micropeak/ao_report_tiny.c
b/src/micropeak/ao_report_tiny.c
index 5937508be239b20ec32775f6eb7f1366b423540f..0e8e287f63eae1c123988dd26ee12df95c3868ec 100644
(file)
--- a/
src/micropeak/ao_report_tiny.c
+++ b/
src/micropeak/ao_report_tiny.c
@@
-17,29
+17,29
@@
#include <ao.h>
#include <ao.h>
-#define mid(time) ao_led_for(AO_LED_
BLUE
, time)
+#define mid(time) ao_led_for(AO_LED_
REPORT
, time)
#define pause(time) ao_delay(time)
static void
ao_report_digit(uint8_t digit) __reentrant
{
if (!digit) {
#define pause(time) ao_delay(time)
static void
ao_report_digit(uint8_t digit) __reentrant
{
if (!digit) {
- mid(AO_MS_TO_TICKS(
6
00));
- pause(AO_MS_TO_TICKS(
2
00));
+ mid(AO_MS_TO_TICKS(
10
00));
+ pause(AO_MS_TO_TICKS(
3
00));
} else {
while (digit--) {
} else {
while (digit--) {
- mid(AO_MS_TO_TICKS(
2
00));
- pause(AO_MS_TO_TICKS(
2
00));
+ mid(AO_MS_TO_TICKS(
3
00));
+ pause(AO_MS_TO_TICKS(
3
00));
}
}
}
}
- pause(AO_MS_TO_TICKS(
3
00));
+ pause(AO_MS_TO_TICKS(
10
00));
}
void
ao_report_altitude(void)
{
}
void
ao_report_altitude(void)
{
- __pdata
int16_t
agl = ao_max_height;
-
__xdata uint8_t digits[10
];
+ __pdata
alt_t
agl = ao_max_height;
+
static __xdata uint8_t digits[11
];
__pdata uint8_t ndigits, i;
if (agl < 0)
__pdata uint8_t ndigits, i;
if (agl < 0)