fixcpn): use model semver over radio semver for decoding model sources and switches (#4768)

This commit is contained in:
Neil Horne
2024-03-24 11:39:24 +10:00
committed by GitHub
parent ac8705f13b
commit 1b73d7530d
3 changed files with 13 additions and 9 deletions
@@ -119,7 +119,7 @@ RawSwitch YamlRawSwitchDecode(const std::string& sw_str)
try {
mp_input_index = std::stoi(sw_str_tmp.substr(2, val_len - 3));
if (radioSettingsVersion < SemanticVersion(QString(CPN_ADC_REFACTOR_VERSION))) {
if (modelSettingsVersion < SemanticVersion(QString(CPN_ADC_REFACTOR_VERSION))) {
if (IS_HORUS_X10(board) || IS_FAMILY_T16(board)) {
if (mp_input_index > 2)
mp_input_index += 2;