Skip to content

Commit

Permalink
fix(cpn): active file radio profile conversion (#5628)
Browse files Browse the repository at this point in the history
  • Loading branch information
elecpower authored and pfeerick committed Oct 22, 2024
1 parent 20bcbfd commit e7fdb41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions companion/src/firmwares/generalsettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -413,8 +413,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
Expand Down

0 comments on commit e7fdb41

Please sign in to comment.