projects
/
fw
/
altos
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
altos: Require manual flight erasing.
[fw/altos]
/
src
/
ao_config.c
diff --git
a/src/ao_config.c
b/src/ao_config.c
index 2153b84152fdacdd645677f0375865870312bf16..2673e472b066a23d556eb333582e88f3431e1401 100644
(file)
--- a/
src/ao_config.c
+++ b/
src/ao_config.c
@@
-36,6
+36,14
@@
_ao_config_put(void)
ao_storage_write(ao_storage_config, &ao_config, sizeof (ao_config));
ao_storage_flush();
}
ao_storage_write(ao_storage_config, &ao_config, sizeof (ao_config));
ao_storage_flush();
}
+
+void
+ao_config_put(void)
+{
+ ao_mutex_get(&ao_config_mutex);
+ _ao_config_put();
+ ao_mutex_put(&ao_config_mutex);
+}
#endif
static void
#endif
static void
@@
-288,13
+296,13
@@
struct ao_config_var {
const char *help;
};
const char *help;
};
-void
+
static
void
ao_config_help(void) __reentrant;
ao_config_help(void) __reentrant;
-void
+
static
void
ao_config_show(void) __reentrant;
ao_config_show(void) __reentrant;
-void
+
static
void
ao_config_write(void) __reentrant;
__code struct ao_config_var ao_config_vars[] = {
ao_config_write(void) __reentrant;
__code struct ao_config_var ao_config_vars[] = {
@@
-348,7
+356,7
@@
ao_config_set(void)
ao_cmd_status = ao_cmd_syntax_error;
}
ao_cmd_status = ao_cmd_syntax_error;
}
-void
+
static
void
ao_config_help(void) __reentrant
{
uint8_t cmd;
ao_config_help(void) __reentrant
{
uint8_t cmd;
@@
-356,7
+364,7
@@
ao_config_help(void) __reentrant
puts (ao_config_vars[cmd].help);
}
puts (ao_config_vars[cmd].help);
}
-void
+
static
void
ao_config_show(void) __reentrant
{
uint8_t cmd;
ao_config_show(void) __reentrant
{
uint8_t cmd;
@@
-368,7
+376,7
@@
ao_config_show(void) __reentrant
}
#if HAS_EEPROM
}
#if HAS_EEPROM
-void
+
static
void
ao_config_write(void) __reentrant
{
uint8_t saved = 0;
ao_config_write(void) __reentrant
{
uint8_t saved = 0;