FIX: 'LF IO FSKDEMOD' - no call to turn of the antenna when exit

Thanks to @samyk

https://github.com/Proxmark/proxmark3/issues/203
This commit is contained in:
iceman1001 2016-12-19 12:51:21 +01:00
parent 501c666b10
commit 61d36d3695

View file

@ -1106,7 +1106,7 @@ void CmdIOdemodFSK(int findone, int *high, int *low, int ledcontrol)
if (ledcontrol) LED_A_OFF(); if (ledcontrol) LED_A_OFF();
*high=code; *high=code;
*low=code2; *low=code2;
return; goto out;
} }
code=code2=0; code=code2=0;
version=facilitycode=0; version=facilitycode=0;
@ -1115,6 +1115,8 @@ void CmdIOdemodFSK(int findone, int *high, int *low, int ledcontrol)
WDT_HIT(); WDT_HIT();
} }
OUT:
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
DbpString("Stopped"); DbpString("Stopped");
if (ledcontrol) LED_A_OFF(); if (ledcontrol) LED_A_OFF();
} }