更新 'decoder.txt'
This commit is contained in:
parent
643297929d
commit
2bd95f3c5b
14
decoder.txt
14
decoder.txt
|
@ -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],
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue