-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need clarification on Control Board numbering #94
Comments
Could you also provide the JSON dump and the input request? |
I am not sure on how to provide "input request". { So, to check, I changed client code to send slot numbers as 1 and 2 instead of slot 0 and 1. { |
Yeah, this seems like an issue with the JSON dump function you're using. The Bootz code doesn't do any validation on the slot number passed by the client. |
I was concerned that Bootz may be treating "0" as invalid slot. Thanks for clarification that it is not the case. But could override default dump behavior by forcing to print default values. from google.protobuf.json_format import MessageToJson Will close the issue as resolved. |
Closing as per details provided in previous comment. |
From Bootz perspective, is slot "0" considered as invalid control board slot number?
When I dump JSON content of Bootz request in python script as shown below, it prints slot-1 number as "1" as expected.
But it doesnt print slot-0 number. So, suspecting that "0" is considered as invalid index.
json_obj = MessageToJson(request)
print(json_obj)
The text was updated successfully, but these errors were encountered: