Skip to content

Commit

Permalink
fix(radio): CS values may be read incorrectly from yaml (#5515)
Browse files Browse the repository at this point in the history
  • Loading branch information
philmoz committed Sep 8, 2024
1 parent f0238e5 commit 4f88ed4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion radio/src/storage/yaml/yaml_datastructs_funcs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ static uint32_t r_swtchSrc(const YamlNode* node, const char* val, uint8_t val_le

ival = switchLookupIdx(val, val_len - 1) * 3;
if (ival < 0) return SWSRC_NONE;
ival += yaml_str2int(val + 3, val_len - 2);
ival += yaml_str2int(val + 3, val_len - 3);
ival += SWSRC_FIRST_SWITCH;

} else if (val_len > 2 && val[0] == 'S'
Expand Down

0 comments on commit 4f88ed4

Please sign in to comment.