diff --git a/companion/src/firmwares/generalsettings.cpp b/companion/src/firmwares/generalsettings.cpp index c4c9cd8a80a..f3b960de771 100644 --- a/companion/src/firmwares/generalsettings.cpp +++ b/companion/src/firmwares/generalsettings.cpp @@ -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