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

[FL-2800] Fix Mifare Classic 4K reading of the last 8 sectors #1712

Merged
merged 8 commits into from
Sep 19, 2022
6 changes: 5 additions & 1 deletion furi/core/core_defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ extern "C" {
#endif

#ifndef FURI_BIT_SET
#define FURI_BIT_SET(x, n) ((x) |= (1 << (n)))
#define FURI_BIT_SET(x, n) \
({ \
__typeof__(x) _x = (1); \
(x) |= (_x << (n)); \
})
#endif

#ifndef FURI_BIT_CLEAR
Expand Down