fix(gf): reset global function context if disabled (#2578)

Fixes #2577
This commit is contained in:
Raphael Coeffic
2022-10-17 12:14:27 +10:00
committed by GitHub
parent d7fedc3639
commit 6cc393cef5
+2
View File
@@ -1045,6 +1045,8 @@ void evalMixes(uint8_t tick10ms)
if (!g_model.noGlobalFunctions) {
evalFunctions(g_eeGeneral.customFn, globalFunctionsContext);
} else {
globalFunctionsContext.reset();
}
evalFunctions(g_model.customFn, modelFunctionsContext);
}