From 15cafbe6c28f5dde4795c78d4f4236ea8dba61c2 Mon Sep 17 00:00:00 2001 From: iceman1001 Date: Mon, 23 Dec 2019 22:24:11 +0100 Subject: [PATCH] fix: hw search for lto --- client/cmdhflto.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/client/cmdhflto.c b/client/cmdhflto.c index 0fc676edb..8a1e914aa 100644 --- a/client/cmdhflto.c +++ b/client/cmdhflto.c @@ -68,7 +68,7 @@ static int lto_send_cmd_raw(uint8_t *cmd, uint8_t len, uint8_t *response, uint16 // select a LTO-CM tag. Send WUPA and RID. -static int topaz_select(uint8_t *id_response, uint8_t id_len, bool verbose) { +static int lto_select(uint8_t *id_response, uint8_t id_len, bool verbose) { // Todo: implement anticollision uint8_t resp[] = {0, 0}; @@ -136,7 +136,7 @@ int infoLTO(bool verbose) { uint8_t serial_number[5]; uint8_t serial_len = 0; - topaz_select(serial_number, serial_len, verbose); + int ret_val = lto_select(serial_number, serial_len, verbose); lto_switch_off_field(); /* @@ -167,7 +167,7 @@ int infoLTO(bool verbose) { return resp.status; */ - return PM3_SUCCESS; + return ret_val; } static int CmdHfLTOList(const char *Cmd) { @@ -197,3 +197,4 @@ int CmdHFLTO(const char *Cmd) { clearCommandBuffer(); return CmdsParse(CommandTable, Cmd); } +