]> cvs.zerfleddert.de Git - proxmark3-svn/commitdiff
Merge pull request #246 from marshmellow42/master
authorIceman <iceman@iuse.se>
Sat, 25 Mar 2017 12:12:05 +0000 (13:12 +0100)
committerGitHub <noreply@github.com>
Sat, 25 Mar 2017 12:12:05 +0000 (13:12 +0100)
hitag sim fix

mea culpa.

armsrc/hitag2.c
armsrc/hitagS.c

index 6a072bf4f93c230ef5a650a32eef2f5965a2ab30..dd0211da98785ce6dbbf381193ae4371eb4c8714 100644 (file)
@@ -993,7 +993,7 @@ void SimulateHitagTag(bool tag_mem_supplied, byte_t* data) {
        
        // Set up simulator mode, frequency divisor which will drive the FPGA
        // and analog mux selection.
-       FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_EDGE_DETECT | FPGA_LF_EDGE_DETECT_READER_FIELD);
+       FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_EDGE_DETECT);
        FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 95); //125Khz
        SetAdcMuxFor(GPIO_MUXSEL_LOPKD);
        RELAY_OFF();
index 58e09a45fe321d066e8ab67b8cca288f578695fb..dc2281b964c8dd065b68cf00b53c7bb72634f5dd 100644 (file)
@@ -1023,8 +1023,7 @@ void SimulateHitagSTag(bool tag_mem_supplied, byte_t* data) {
 // Set up simulator mode, frequency divisor which will drive the FPGA
 // and analog mux selection.
        FpgaDownloadAndGo(FPGA_BITSTREAM_LF);
-       FpgaWriteConfWord(
-       FPGA_MAJOR_MODE_LF_EDGE_DETECT | FPGA_LF_EDGE_DETECT_READER_FIELD);
+       FpgaWriteConfWord(FPGA_MAJOR_MODE_LF_EDGE_DETECT);
        FpgaSendCommand(FPGA_CMD_SET_DIVISOR, 95); //125Khz
        SetAdcMuxFor(GPIO_MUXSEL_LOPKD);
        RELAY_OFF();
Impressum, Datenschutz