-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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
Add EFI Hirth simulator #25497
Add EFI Hirth simulator #25497
Conversation
just sums the values of the bytes in a buffer and returns that sum modulus 256
|
||
// sums the bytes in the supplied buffer, returns that sum mod 256 | ||
// (i.e. shoved into a uint8_t) | ||
uint8_t sum_of_bytes_in_buffer_mod_256(uint8_t *data, uint16_t count) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
void EFI_Hirth::update() | ||
{ | ||
auto sitl = AP::sitl(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not const auto *sitl = AP::sitl();
like below?
status EFI_STATUS | ||
|
||
./Tools/autotest/autotest.py --gdb --debug build.Plane test.Plane.Hirth | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Want to drop a link to the manufacturer's docs so one could cross-reference against the packet definitions?
.... and fix the MegSquirt one a little