mirror of
https://github.com/Klipper3d/klipper.git
synced 2025-07-07 06:57:38 -06:00
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:
parent
067fac05a8
commit
0ac518040b
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue