8000 Test fix for RMI_READ_DATA_REPORT_ID by zhen-zen · Pull Request #65 · VoodooSMBus/VoodooRMI · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Test fix for RMI_READ_DATA_REPORT_ID #65

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

Closed
wants to merge 5 commits into from

Conversation

zhen-zen
Copy link
Contributor

#64

@zhen-zen zhen-zen marked this pull request as draft September 22, 2020 05:19
@@ -313,6 +313,13 @@ int RMII2C::readBlock(u16 rmiaddr, u8 *databuff, size_t len) {
if (i2cInput[2] != RMI_READ_DATA_REPORT_ID) {
IOLogError("%s::%s RMI_READ_DATA_REPORT_ID mismatch %d", getName(), name, i2cInput[2]);
retval = -1;
char *buf = new char[len*2 + 9];
for (int i=0; i<len+4; i++)
snprintf(buf + 2*i, 3, "%2d", i2cInput[i]);
Copy link
Collaborator
@1Revenger1 1Revenger1 Sep 22, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

probably want x here for hex rather than d, especially since with d, it could go up to three digits.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol, I grabbed it from a stash and forgot to check it.

@zhen-zen zhen-zen marked this pull request as ready for review October 4, 2020 03:22
@1Revenger1 1Revenger1 mentioned this pull request Apr 6, 2021
@1Revenger1 1Revenger1 closed this Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0