Skip to content

Commit 2389fa9

Browse files
committed
m1n1.adt: Fix parsing of template ADTs
Adding the speaker calibration stuff broke it because we try to parse template values as real values. Don't do that. Signed-off-by: Hector Martin <[email protected]>
1 parent fe104d3 commit 2389fa9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

proxyclient/m1n1/adt.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,8 @@ def parse_prop(node, path, node_name, name, v, is_template=False):
275275

276276
if is_template:
277277
t = CString("ascii")
278+
v = Sequence(t, Terminated).parse(v)[0]
279+
return t, v
278280

279281
dev_props = None
280282
for k, pt in DEV_PROPERTIES.items():

0 commit comments

Comments
 (0)