mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
style
This commit is contained in:
parent
79d1e102af
commit
c997805117
1 changed files with 22 additions and 22 deletions
|
@ -1771,7 +1771,7 @@ static int CmdHFFelicaRequestService(const char *Cmd) {
|
||||||
* @return client result code.
|
* @return client result code.
|
||||||
*/
|
*/
|
||||||
static int CmdHFFelicaDumpServiceArea(const char *Cmd) {
|
static int CmdHFFelicaDumpServiceArea(const char *Cmd) {
|
||||||
/* ── CLI boilerplate (unchanged) ─────────────────────────────── */
|
/* -- CLI boilerplate (unchanged) ------------------------------- */
|
||||||
CLIParserContext *ctx;
|
CLIParserContext *ctx;
|
||||||
CLIParserInit(&ctx, "hf felica scsvcode",
|
CLIParserInit(&ctx, "hf felica scsvcode",
|
||||||
"Dump all existing Area Code and Service Code.\n",
|
"Dump all existing Area Code and Service Code.\n",
|
||||||
|
@ -1780,7 +1780,7 @@ static int CmdHFFelicaDumpServiceArea(const char *Cmd) {
|
||||||
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
CLIExecWithReturn(ctx, Cmd, argtable, true);
|
||||||
CLIParserFree(ctx);
|
CLIParserFree(ctx);
|
||||||
|
|
||||||
/* ── build static part of Search-Service frame ──────────────── */
|
/* -- build static part of Search-Service frame ---------------- */
|
||||||
uint8_t data[PM3_CMD_DATA_SIZE] = {0};
|
uint8_t data[PM3_CMD_DATA_SIZE] = {0};
|
||||||
data[0] = 0x0C; /* LEN */
|
data[0] = 0x0C; /* LEN */
|
||||||
data[1] = 0x0A; /* CMD = 0x0A */
|
data[1] = 0x0A; /* CMD = 0x0A */
|
||||||
|
@ -1795,7 +1795,7 @@ static int CmdHFFelicaDumpServiceArea(const char *Cmd) {
|
||||||
|
|
||||||
uint8_t flags = FELICA_APPEND_CRC | FELICA_RAW;
|
uint8_t flags = FELICA_APPEND_CRC | FELICA_RAW;
|
||||||
|
|
||||||
/* ── traversal state ────────────────────────────────────────── */
|
/* -- traversal state ------------------------------------------ */
|
||||||
uint16_t cursor = 0x0000;
|
uint16_t cursor = 0x0000;
|
||||||
uint16_t area_end_stack[8] = {0xFFFF}; /* root “end” = 0xFFFF */
|
uint16_t area_end_stack[8] = {0xFFFF}; /* root “end” = 0xFFFF */
|
||||||
int depth = 0; /* current stack depth */
|
int depth = 0; /* current stack depth */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue