Fix length of Txx string

Resolves #1116
This commit is contained in:
Raphael Coeffic
2021-11-21 22:34:53 +01:00
committed by Raphael Coeffic
parent 0388734828
commit 3ffa531fdd
2 changed files with 2 additions and 2 deletions
@@ -781,7 +781,7 @@ static bool w_swtchSrc(const YamlNode* node, uint32_t val, yaml_writer_func wf,
else if (sval >= SWSRC_FIRST_SENSOR
&& sval <= SWSRC_LAST_SENSOR) {
wf(opaque, "T", 2);
wf(opaque, "T", 1);
str = yaml_unsigned2str(sval - SWSRC_FIRST_SENSOR + 1);
return wf(opaque,str, strlen(str));
}