projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Decrease telemetry rate on the pad to 1/sec instead of 20/sec
[fw/altos]
/
ao_config.c
diff --git
a/ao_config.c
b/ao_config.c
index e32dca4537b26df3d01cfc94bd5ffd3f5ac32a05..02f1e0827774d2f79da5c318eb37b814fba0fbb5 100644
(file)
--- a/
ao_config.c
+++ b/
ao_config.c
@@
-87,6
+87,8
@@
ao_config_callsign_set(void) __reentrant
return;
ao_mutex_get(&ao_config_mutex);
_ao_config_get();
return;
ao_mutex_get(&ao_config_mutex);
_ao_config_get();
+ while (c < AO_MAX_CALLSIGN + 1)
+ callsign[c++] = '\0';
memcpy(&ao_config.callsign, &callsign,
AO_MAX_CALLSIGN + 1);
ao_config_dirty = 1;
memcpy(&ao_config.callsign, &callsign,
AO_MAX_CALLSIGN + 1);
ao_config_dirty = 1;
@@
-97,7
+99,7
@@
ao_config_callsign_set(void) __reentrant
void
ao_config_radio_channel_show(void) __reentrant
{
void
ao_config_radio_channel_show(void) __reentrant
{
- uint32_t freq = 43
5
550L + ao_config.radio_channel * 100L;
+ uint32_t freq = 43
4
550L + ao_config.radio_channel * 100L;
uint16_t mhz = freq / 1000L;
uint16_t khz = freq % 1000L;
uint16_t mhz = freq / 1000L;
uint16_t khz = freq % 1000L;
@@
-188,7
+190,7
@@
ao_config_accel_zero_g_set(void) __reentrant
}
struct ao_config_var {
}
struct ao_config_var {
-
uint8_t
cmd;
+
char
cmd;
void (*set)(void) __reentrant;
void (*show)(void) __reentrant;
const char *help;
void (*set)(void) __reentrant;
void (*show)(void) __reentrant;
const char *help;
@@
-225,7
+227,7
@@
__code struct ao_config_var ao_config_vars[] = {
void
ao_config_set(void)
{
void
ao_config_set(void)
{
-
uint8_t
c;
+
char
c;
uint8_t cmd;
void (*__xdata func)(void) __reentrant;
uint8_t cmd;
void (*__xdata func)(void) __reentrant;