This commit is contained in:
iceman1001 2025-07-28 15:45:33 +02:00
commit c997805117

View file

@ -1771,7 +1771,7 @@ static int CmdHFFelicaRequestService(const char *Cmd) {
* @return client result code.
*/
static int CmdHFFelicaDumpServiceArea(const char *Cmd) {
/* ── CLI boilerplate (unchanged) ─────────────────────────────── */
/* -- CLI boilerplate (unchanged) ------------------------------- */
CLIParserContext *ctx;
CLIParserInit(&ctx, "hf felica scsvcode",
"Dump all existing Area Code and Service Code.\n",
@ -1780,7 +1780,7 @@ static int CmdHFFelicaDumpServiceArea(const char *Cmd) {
CLIExecWithReturn(ctx, Cmd, argtable, true);
CLIParserFree(ctx);
/* ── build static part of Search-Service frame ──────────────── */
/* -- build static part of Search-Service frame ---------------- */
uint8_t data[PM3_CMD_DATA_SIZE] = {0};
data[0] = 0x0C; /* LEN */
data[1] = 0x0A; /* CMD = 0x0A */
@ -1795,7 +1795,7 @@ static int CmdHFFelicaDumpServiceArea(const char *Cmd) {
uint8_t flags = FELICA_APPEND_CRC | FELICA_RAW;
/* ── traversal state ────────────────────────────────────────── */
/* -- traversal state ------------------------------------------ */
uint16_t cursor = 0x0000;
uint16_t area_end_stack[8] = {0xFFFF}; /* root “end” = 0xFFFF */
int depth = 0; /* current stack depth */