From a2c21f1d07110ca9551444257389814cd668602b Mon Sep 17 00:00:00 2001 From: Christian Molson Date: Sun, 13 Dec 2020 16:40:27 -0500 Subject: [PATCH] em4x70: fix function names --- armsrc/em4x70.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/armsrc/em4x70.c b/armsrc/em4x70.c index 1c713905c..71f9cb6b7 100644 --- a/armsrc/em4x70.c +++ b/armsrc/em4x70.c @@ -80,7 +80,7 @@ static void init_tag(void) { memset(tag.data, 0x00, sizeof(tag.data) / sizeof(tag.data[0])); } -static void EM4170_setup_read(void) { +static void em4x70_setup_read(void) { FpgaDownloadAndGo(FPGA_BITSTREAM_LF); FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_ADC | FPGA_LF_ADC_READER_FIELD); @@ -550,7 +550,7 @@ static bool em4x70_read_um2(void) { } -static bool find_EM4X70_Tag(void) { +static bool find_em4x70_Tag(void) { // function is used to check wether a tag on the proxmark is an // EM4170 tag or not -> speed up "lf search" process return find_listen_window(false); @@ -646,10 +646,10 @@ void em4x70_info(em4x70_data_t *etd) { command_parity = etd->parity; init_tag(); - EM4170_setup_read(); + em4x70_setup_read(); // Find the Tag - if (get_signalproperties() && find_EM4X70_Tag()) { + if (get_signalproperties() && find_em4x70_Tag()) { // Read ID, UM1 and UM2 status = em4x70_read_id() && em4x70_read_um1() && em4x70_read_um2(); } @@ -666,10 +666,10 @@ void em4x70_write(em4x70_data_t *etd) { command_parity = etd->parity; init_tag(); - EM4170_setup_read(); + em4x70_setup_read(); // Find the Tag - if (get_signalproperties() && find_EM4X70_Tag()) { + if (get_signalproperties() && find_em4x70_Tag()) { // Write status = write(etd->word, etd->address) == PM3_SUCCESS; @@ -695,10 +695,10 @@ void em4x70_unlock(em4x70_data_t *etd) { command_parity = etd->parity; init_tag(); - EM4170_setup_read(); + em4x70_setup_read(); // Find the Tag - if (get_signalproperties() && find_EM4X70_Tag()) { + if (get_signalproperties() && find_em4x70_Tag()) { // Read ID (required for send_pin command) if (em4x70_read_id()) { @@ -729,10 +729,10 @@ void em4x70_auth(em4x70_data_t *etd) { command_parity = etd->parity; init_tag(); - EM4170_setup_read(); + em4x70_setup_read(); // Find the Tag - if (get_signalproperties() && find_EM4X70_Tag()) { + if (get_signalproperties() && find_em4x70_Tag()) { // Authenticate and get tag response status = authenticate(etd->rnd, etd->frnd, response) == PM3_SUCCESS;