更新 'decoder.txt'

This commit is contained in:
Yunhorn 2023-12-20 09:54:21 +08:00
parent 643297929d
commit 2bd95f3c5b
1 changed files with 14 additions and 0 deletions

View File

@ -27,5 +27,19 @@ function Decode(fPort, data, variables) {
}
];
}
else if (fPort === 1) {
if (bytes[0] === 0x56) {
return [
{
mtm_code_1: bytes[1],
mtm_code_2: bytes[2],
HW_Version: "HW:"+bytes[3],
SW_Version:"SW"+bytes[4]+":"+bytes[5]+":"+bytes[6]+":"+bytes[7],
}
];
}
}
}