-
Notifications
You must be signed in to change notification settings - Fork 12
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
Bug in LIST_OPEN_HANDLES reply #2
Comments
I'm just curious... What are you using this command for in your program? I have a feeling that the official LEGO software does not use this command for anything. |
It's just for fun. I'm writing my program because I want to be able to control the brick with a command line utility. After I finish it, I'm probably going to publish it on GitHub. By the way, I like your firmware flasher. Is there any documentation for the boot EEPROM apart from your code and the boot code itself? |
No. LEGO has not released the source code used in the EEPROM and it is not mentioned in any of the SDKs. |
Hi,
I'm implementing the EV3 communication protocol in my program and I think there's a bug in
c_com.c
on line 2263:That can be simplified to this pseudocode:
I think the
i*j
(HCnt2 * HCnt1
) handle index is a nonsense. Simple bash script illustrates that:Then there's a write outside the packet
CmdSize
caused by indexi+2
(HCnt1 + 2
). Claimed size issizeof(RPLY_LIST_HANDLES) - sizeof(CMDSIZE) + 9
, but real size issizeof(RPLY_LIST_HANDLES) - sizeof(CMDSIZE) + 11
.I think the whole switch case should be:
Have a nice day!
The text was updated successfully, but these errors were encountered: