aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/buildcommands.py
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-07-02 14:11:10 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-07-02 14:11:10 -0400
commit0ac518040b42396ba509e02aa3e8c4866fac63d8 (patch)
tree4dbbdbe3022062417b579f0f2268780292d29caa /scripts/buildcommands.py
parent067fac05a865ee2eccab02637ca82ee3f0b3705b (diff)
downloadkutter-0ac518040b42396ba509e02aa3e8c4866fac63d8.tar.gz
kutter-0ac518040b42396ba509e02aa3e8c4866fac63d8.tar.xz
kutter-0ac518040b42396ba509e02aa3e8c4866fac63d8.zip
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 <kevin@koconnor.net>
Diffstat (limited to 'scripts/buildcommands.py')
-rw-r--r--scripts/buildcommands.py3
1 files changed, 2 insertions, 1 deletions
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