mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 13:23:51 -07:00
fix overwriting return value in one case
This commit is contained in:
parent
e3ceb2ffe4
commit
cb937a3f57
1 changed files with 6 additions and 2 deletions
|
@ -518,7 +518,7 @@ int ReadLF_realtime(bool reader_field) {
|
|||
// Request USB transmission and change FIFO bank
|
||||
if (async_usb_write_requestWrite() == false) {
|
||||
return_value = PM3_EIO;
|
||||
break;
|
||||
goto out;
|
||||
}
|
||||
|
||||
// Reset sample
|
||||
|
@ -535,10 +535,14 @@ int ReadLF_realtime(bool reader_field) {
|
|||
}
|
||||
}
|
||||
}
|
||||
LED_D_OFF();
|
||||
|
||||
return_value = async_usb_write_stop();
|
||||
|
||||
out:
|
||||
LED_D_OFF();
|
||||
|
||||
// DoAcquisition() end
|
||||
|
||||
StopTicks();
|
||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||
return return_value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue