bloguetronica / cp2130

A C++ class that uses libusb to interface with CP2130 devices. It can be used to configure the OTP ROM of such devices, as well as to control them. This class was originally derived from the corresponding class for Qt. Please refer to https://github.com/bloguetronica/cp2130-qt if you wish to use the original class instead.
2 stars 0 forks source link

Line 634 of "cp2130.cpp" contains a mild incorrection #35

Closed samuelfmlourenco closed 5 months ago

samuelfmlourenco commented 5 months ago

To summarize, line 634 contains the following:

mode.cpol = (0x10 &controlBufferIn[channel]) != 0x00;

This is incorrect in its form, because there is no space after the ampersand. This is of no consequence, because C++ is a white space independent language. However, this should be corrected:

mode.cpol = (0x10 & controlBufferIn[channel]) != 0x00;

samuelfmlourenco commented 5 months ago

Corrected in version 1.2.6.