From: iceman1001 Date: Mon, 19 Dec 2016 11:51:21 +0000 (+0100) Subject: FIX: 'LF IO FSKDEMOD' - no call to turn of the antenna when exit X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/61d36d369536ff3b3aecca8578dad8f94f91a741 FIX: 'LF IO FSKDEMOD' - no call to turn of the antenna when exit Thanks to @samyk https://github.com/Proxmark/proxmark3/issues/203 --- diff --git a/armsrc/lfops.c b/armsrc/lfops.c index 9919df0f..16e55573 100644 --- a/armsrc/lfops.c +++ b/armsrc/lfops.c @@ -1106,7 +1106,7 @@ void CmdIOdemodFSK(int findone, int *high, int *low, int ledcontrol) if (ledcontrol) LED_A_OFF(); *high=code; *low=code2; - return; + goto out; } code=code2=0; version=facilitycode=0; @@ -1115,6 +1115,8 @@ void CmdIOdemodFSK(int findone, int *high, int *low, int ledcontrol) WDT_HIT(); } +OUT: + FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF); DbpString("Stopped"); if (ledcontrol) LED_A_OFF(); }