diff options
Diffstat (limited to 'src/core/ao_config.c')
| -rw-r--r-- | src/core/ao_config.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/ao_config.c b/src/core/ao_config.c index ced8b1f2..88fcc12d 100644 --- a/src/core/ao_config.c +++ b/src/core/ao_config.c @@ -131,6 +131,10 @@ _ao_config_get(void) ao_config.frequency = 434550; if (minor < 11) ao_config.apogee_lockout = 0; +#if AO_PYRO_NUM + if (minor < 12) + memset(&ao_config.pyro, '\0', sizeof (ao_config.pyro)); +#endif ao_config.minor = AO_CONFIG_MINOR; ao_config_dirty = 1; } @@ -144,14 +148,14 @@ _ao_config_get(void) ao_config_loaded = 1; } -static void +void _ao_config_edit_start(void) { ao_mutex_get(&ao_config_mutex); _ao_config_get(); } -static void +void _ao_config_edit_finish(void) { ao_config_dirty = 1; @@ -538,6 +542,10 @@ __code struct ao_config_var ao_config_vars[] = { { "k <32 hex digits>\0Set AES encryption key", ao_config_key_set, ao_config_key_show }, #endif +#if AO_PYRO_NUM + { "P <n,?>\0Configure pyro channels", + ao_pyro_set, ao_pyro_show }, +#endif { "s\0Show", ao_config_show, 0 }, #if HAS_EEPROM |
