1
mirror of https://github.com/flipperdevices/flipperzero-firmware.git synced 2025-12-13 13:29:50 +04:00

[FL-3717] MFC emulation fix (#3291)

* mf classic listener: reset state before sleep and after nack
* Fix PVS warnings
* Fix PVS and compiler disagree on builtins

Co-authored-by: あく <alleteam@gmail.com>
This commit is contained in:
gornekich
2023-12-15 21:51:20 +04:00
committed by GitHub
parent 36aecfbec9
commit 09540929c3
3 changed files with 11 additions and 11 deletions

View File

@@ -42,7 +42,7 @@ uint64_t nfc_util_bytes2num_little_endian(const uint8_t* src, uint8_t len) {
uint64_t res = 0;
uint8_t shift = 0;
while(len--) {
res |= *src << (8 * shift++);
res |= ((uint64_t)*src) << (8 * shift++);
src++;
}
return res;