You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
in legoino/src/Lpf2Hub.cpp, line 82 there is a code:
if (manufacturerDataLength >= 3) <-- check if buffer is at least 3 characters length
{
log_d("manufacturer data hub type: %x", manufacturerData[3]);
//check device type ID
switch (manufacturerData[3]) <-- accessing 4th element in the buffer
should be line 82 changed to: if (manufacturerDataLength >= 4) ?
The text was updated successfully, but these errors were encountered:
Hi
in legoino/src/Lpf2Hub.cpp, line 82 there is a code:
if (manufacturerDataLength >= 3) <-- check if buffer is at least 3 characters length
{
log_d("manufacturer data hub type: %x", manufacturerData[3]);
//check device type ID
switch (manufacturerData[3]) <-- accessing 4th element in the buffer
should be line 82 changed to: if (manufacturerDataLength >= 4) ?
The text was updated successfully, but these errors were encountered: