From 2389fa9d3db503e870bbceb9d925412ab61cf445 Mon Sep 17 00:00:00 2001 From: Hector Martin Date: Sun, 9 Apr 2023 19:22:09 +0900 Subject: [PATCH] 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 --- proxyclient/m1n1/adt.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/proxyclient/m1n1/adt.py b/proxyclient/m1n1/adt.py index ec7e61ae..0354c4a4 100644 --- a/proxyclient/m1n1/adt.py +++ b/proxyclient/m1n1/adt.py @@ -275,6 +275,8 @@ def parse_prop(node, path, node_name, name, v, is_template=False): if is_template: t = CString("ascii") + v = Sequence(t, Terminated).parse(v)[0] + return t, v dev_props = None for k, pt in DEV_PROPERTIES.items():