From 0ac518040b42396ba509e02aa3e8c4866fac63d8 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Sun, 2 Jul 2017 14:11:10 -0400 Subject: msgproto: Export static_strings from mcu to host as a dictionary Export the static strings as a dictionary instead of as a list. Signed-off-by: Kevin O'Connor --- scripts/buildcommands.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scripts/buildcommands.py') diff --git a/scripts/buildcommands.py b/scripts/buildcommands.py index 0c147191..93c0eb37 100644 --- a/scripts/buildcommands.py +++ b/scripts/buildcommands.py @@ -187,7 +187,8 @@ def build_identify(cmd_by_id, msg_to_id, responses, static_strings data['messages'] = messages data['commands'] = sorted(cmd_by_id.keys()) data['responses'] = sorted(responses) - data['static_strings'] = static_strings + data['static_strings'] = { i: static_strings[i] + for i in range(len(static_strings)) } data['config'] = constants data['version'] = version -- cgit v1.2.3-70-g09d2