Skip to content
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

Update ch341a_spi.c #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update ch341a_spi.c #71

wants to merge 1 commit into from

Conversation

jeremiah
Copy link

Possible typo so changed libusb_set_debug to libusb_set_option.

Possible typo so changed libusb_set_debug to libusb_set_option.
@@ -434,7 +434,7 @@ int ch341a_spi_init(void)

/* Enable information, warning, and error messages (only). */
#if LIBUSB_API_VERSION < 0x01000106
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this condition is true for your version of libusb?

Copy link
Author

Choose a reason for hiding this comment

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

No, I'll check.

Copy link
Author

Choose a reason for hiding this comment

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

I'm using flashrom-9.9+r1954. On line 447 of ch341a_spi.c there is a call to libusb_set_debug that causes warnings. I can see in more recent versions of flashrom that you're checking the LIBUSB_API_VERSION so obviously this patch is only useful for older versions.

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.

None yet

2 participants