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

acerto na lib MFRC522Extended.cpp #641

Open
Fernandolilo opened this issue Oct 9, 2024 · 0 comments
Open

acerto na lib MFRC522Extended.cpp #641

Fernandolilo opened this issue Oct 9, 2024 · 0 comments

Comments

@Fernandolilo
Copy link

acerte os 2 trechos do codigo na lib citada acima,

nas linhas 824 e 847 veja as correções que estou passando dentro das estrutura.

if (backData != nullptr && backLen != nullptr && *backLen > 0) {
if (*backLen < in.inf.size)
return STATUS_NO_ROOM;

*backLen = in.inf.size;
memcpy(backData, in.inf.data, in.inf.size);

}

if (backData != nullptr && backLen != nullptr && *backLen > 0) {
if ((*backLen + ackDataSize) > totalBackLen)
return STATUS_NO_ROOM;

memcpy(&(backData[*backLen]), ackData, ackDataSize);
*backLen += ackDataSize;

}

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

No branches or pull requests

1 participant