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>
This commit is contained in:
Kevin O'Connor 2017-07-02 14:11:10 -04:00
parent 067fac05a8
commit 0ac518040b
2 changed files with 6 additions and 4 deletions

View file

@ -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