projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make menu seperator insensitive
[fw/altos]
/
ao_config.c
diff --git
a/ao_config.c
b/ao_config.c
index 593029f29dad4c0234001ae93ad6668f099eee13..657c7a8a17a976ab62ba2ea85e53a406d0535a4d 100644
(file)
--- a/
ao_config.c
+++ b/
ao_config.c
@@
-24,7
+24,7
@@
__xdata uint8_t ao_config_mutex;
#define AO_CONFIG_DEFAULT_MAIN_DEPLOY 250
#define AO_CONFIG_DEFAULT_RADIO_CHANNEL 0
#define AO_CONFIG_DEFAULT_MAIN_DEPLOY 250
#define AO_CONFIG_DEFAULT_RADIO_CHANNEL 0
-#define AO_CONFIG_DEFAULT_CALLSIGN "KD7S
GQ
"
+#define AO_CONFIG_DEFAULT_CALLSIGN "KD7S
QG
"
#define AO_CONFIG_DEFAULT_ACCEL_ZERO_G 16000
static void
#define AO_CONFIG_DEFAULT_ACCEL_ZERO_G 16000
static void
@@
-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;
@@
-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;