fix(cpn): active file radio profile conversion (#5628)

This commit is contained in:
Neil Horne
2024-10-21 10:12:13 +10:00
committed by GitHub
parent 60fe06ae40
commit dc7d329e92
+2 -2
View File
@@ -420,8 +420,8 @@ void GeneralSettings::convert(RadioDataConversionState & cstate)
// Try to intelligently copy any custom controls
// step 1 clear current config
memset(&inputConfig[0], '0', sizeof(InputConfig) * CPN_MAX_INPUTS);
memset(&switchConfig[0], '0', sizeof(SwitchConfig) * CPN_MAX_SWITCHES);
memset(&inputConfig[0], 0, sizeof(InputConfig) * CPN_MAX_INPUTS);
memset(&switchConfig[0], 0, sizeof(SwitchConfig) * CPN_MAX_SWITCHES);
// step 2 load default config
setDefaultControlTypes(cstate.toType);
// step 3 copy matching config based on tags