Apply appconf after changing it

This commit is contained in:
Benjamin Vedder 2022-02-22 02:36:14 +01:00
parent 84daf396e0
commit 4c1bf2f40e
1 changed files with 2 additions and 0 deletions

View File

@ -28,6 +28,7 @@
#include "mc_interface.h"
#include "mempools.h"
#include "terminal.h"
#include "app.h"
#include <math.h>
@ -134,6 +135,7 @@ bool encoder_init(volatile mc_configuration *conf) {
appconf->app_to_use == APP_PPM_UART ||
appconf->app_to_use == APP_ADC_UART) {
appconf->app_to_use = APP_NONE;
app_set_configuration(appconf);
conf_general_store_app_configuration(appconf);
}
mempools_free_appconf(appconf);