From f85420d6f31928f5bb99a9d62838f4cca38ea687 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 13 May 2019 12:27:00 +0200 Subject: [PATCH] Remove unused oldarg in SniffHitag --- armsrc/appmain.c | 2 +- armsrc/hitag2.c | 2 +- armsrc/hitag2.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 13c2e6489..fc4799ea0 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -866,7 +866,7 @@ static void PacketReceived(PacketCommandNG *packet) { #ifdef WITH_HITAG case CMD_SNIFF_HITAG: // Eavesdrop Hitag tag, args = type - SniffHitag(packet->oldarg[0]); + SniffHitag(); break; case CMD_SIMULATE_HITAG: // Simulate Hitag tag, args = memory content SimulateHitagTag((bool)packet->oldarg[0], packet->data.asBytes); diff --git a/armsrc/hitag2.c b/armsrc/hitag2.c index 9dacca28a..e291ece36 100644 --- a/armsrc/hitag2.c +++ b/armsrc/hitag2.c @@ -681,7 +681,7 @@ static bool hitag2_read_uid(uint8_t *rx, const size_t rxlen, uint8_t *tx, size_t } // Hitag2 Sniffing -void SniffHitag(uint32_t type) { +void SniffHitag(void) { StopTicks(); diff --git a/armsrc/hitag2.h b/armsrc/hitag2.h index 2260e5f8d..c62a2a221 100644 --- a/armsrc/hitag2.h +++ b/armsrc/hitag2.h @@ -15,7 +15,7 @@ #include #include "hitag.h" -void SniffHitag(uint32_t type); +void SniffHitag(void); void SimulateHitagTag(bool tag_mem_supplied, uint8_t *data); void ReaderHitag(hitag_function htf, hitag_data *htd); void WriterHitag(hitag_function htf, hitag_data *htd, int page);