mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2026-11-13 10:27:37 +00:00
Adds the T5577 block read to lib/lfrfid, the .t5577 dump format, and a bundled T5577 app: read a tag's blocks and save them, look them over, edit any block or compose block 0 by name, write a dump back with every block read back again, test which blocks a chip really takes, wipe a tag, and clear its password. Wipe and Clear Password move here from RFID -> Extra Actions, since both address blocks and are judged by reading one back. Their password list moves out of internal flash to /ext/lfrfid/assets/t5577_dict.lfrfid, read with keys_dict the same way the NFC key dictionaries are. Also rebuilds the lfrfid "Write and set password" flow on verified blocks, and bounds a verify read that could wait forever - the two together left a tag protected with the screen still on "Writing with password". Fixes #1180. API 88.22. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MaBUeP1J6NwqCJjhbnTUND
31 lines
685 B
Python
31 lines
685 B
Python
Import("env")
|
|
|
|
env.Append(
|
|
LINT_SOURCES=[
|
|
Dir("."),
|
|
],
|
|
CPPPATH=[
|
|
"#/lib/lfrfid",
|
|
],
|
|
SDK_HEADERS=[
|
|
File("lfrfid_worker.h"),
|
|
File("lfrfid_raw_worker.h"),
|
|
File("lfrfid_raw_file.h"),
|
|
File("lfrfid_dict_file.h"),
|
|
File("lfrfid_settings.h"),
|
|
File("lfrfid_write_targets.h"),
|
|
File("protocols/lfrfid_protocols.h"),
|
|
File("tools/t5577.h"),
|
|
File("tools/t5577_file.h"),
|
|
],
|
|
)
|
|
|
|
libenv = env.Clone(FW_LIB_NAME="lfrfid")
|
|
libenv.ApplyLibFlags()
|
|
|
|
sources = libenv.GlobRecursive("*.c*")
|
|
|
|
lib = libenv.StaticLibrary("${FW_LIB_NAME}", sources)
|
|
libenv.Install("${LIB_DIST_DIR}", lib)
|
|
Return("lib")
|