mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-11 06:09:08 -07:00
NFC: NDEF parser Mifare Classic support, protocol-agnostic refactor and more improvements (#265)
* Update ndef.c included mifare classic support * Update application.fam * Update ndef.c * Update ndef.c * Update ndef.c * Update ndef.c * Update ndef.c for better parsing Because mifare classic 1k has a sector trailer, the ndef parser might conflict with it if the payload is long enough or if there's too many payloads. This code removes all sector trailer in a new buffer and uses that for parsing without any problems. * Rewrite NDEF as protocol agnostic * Move type name buffer to stack when possible * Parse URI without heap buffer * Reduce binary sizes by using preprocessor defines * Parse MFC without clone buffer and support MAD2 * Keep message count between different TLVs * Simplify macro check * Simplify length conversion * Improve output of unparsed types * Add some more logging * Fix WiFi parsing * Check MAD key before reading * Rename ndef_read() to ndef_get() * Update changelog * Wording --------- Co-authored-by: Willy-JL <49810075+Willy-JL@users.noreply.github.com>
This commit is contained in:
@@ -255,8 +255,19 @@ App(
|
||||
)
|
||||
|
||||
App(
|
||||
appid="ndef_parser",
|
||||
appid="ndef_ul_parser",
|
||||
apptype=FlipperAppType.PLUGIN,
|
||||
cdefines=[("NDEF_PROTO", "NDEF_PROTO_UL")],
|
||||
entry_point="ndef_plugin_ep",
|
||||
targets=["f7"],
|
||||
requires=["nfc"],
|
||||
sources=["plugins/supported_cards/ndef.c"],
|
||||
)
|
||||
|
||||
App(
|
||||
appid="ndef_mfc_parser",
|
||||
apptype=FlipperAppType.PLUGIN,
|
||||
cdefines=[("NDEF_PROTO", "NDEF_PROTO_MFC")],
|
||||
entry_point="ndef_plugin_ep",
|
||||
targets=["f7"],
|
||||
requires=["nfc"],
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user