bloguetronica / mcp2210-qt

A C++ class that uses libusb to interface with MCP2210 devices. It can be used to control the several aspects, such as NVRAM or volatile configurations, GPIO directions and states, or to perform SPI transfers. Note that this is a class variant made specifically for Qt. If you wish to use the original, non-Qt variant, please refer to https://github.com/bloguetronica/mcp2210.
0 stars 0 forks source link

The constant "COMMAND_SIZE" should be cast to an int in "mcp2210.cpp", line 438 #1

Closed samuelfmlourenco closed 1 year ago

samuelfmlourenco commented 2 years ago

In line 438 we have the following:

QVector<quint8> retdata(COMMAND_SIZE);

However, this should be corrected to:

QVector<quint8> retdata(static_cast<int>(COMMAND_SIZE));

samuelfmlourenco commented 1 year ago

Fix applied in version 1.1.0.