fix(cpn): active file radio profile conversion (#5628)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user