2
0
mirror of https://github.com/esiur/esiur-js.git synced 2026-04-04 05:58:22 +00:00
This commit is contained in:
2023-07-02 12:39:49 +03:00
parent c3365773c5
commit 16c97373b7
5 changed files with 14 additions and 5 deletions

View File

@@ -135,13 +135,13 @@ export default class DataSerializer {
return new DataSerializerComposeResults(
TransmissionTypeIdentifier.Null, new DC(0));
var cts = template.constants.filter((x) => x.value == value);
var cts = template.constants.filter((x) => x.value == value.value);
if (cts.length == 0)
return new DataSerializerComposeResults(
TransmissionTypeIdentifier.Null, new DC(0));
var rt = BinaryList();
var rt = new BinaryList();
rt.addGuid(template.classId);
rt.addUint8(cts[0].index);