em4x70: fix function names

This commit is contained in:
Christian Molson 2020-12-13 16:40:27 -05:00
parent 6a9d975260
commit a2c21f1d07

View file

@ -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;