fix overwriting return value in one case
This commit is contained in:
1 parent
e3ceb2ffe4
commit
cb937a3f57
1 file changed
+6
-2
+6
-2
@@ -518,7 +518,7 @@ int ReadLF_realtime(bool reader_field) {
|
|||||||
// Request USB transmission and change FIFO bank
|
// Request USB transmission and change FIFO bank
|
||||||
if (async_usb_write_requestWrite() == false) {
|
if (async_usb_write_requestWrite() == false) {
|
||||||
return_value = PM3_EIO;
|
return_value = PM3_EIO;
|
||||||
break;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Reset sample
|
// Reset sample
|
||||||
@@ -535,10 +535,14 @@ int ReadLF_realtime(bool reader_field) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
LED_D_OFF();
|
|
||||||
return_value = async_usb_write_stop();
|
return_value = async_usb_write_stop();
|
||||||
|
|
||||||
|
out:
|
||||||
|
LED_D_OFF();
|
||||||
|
|
||||||
// DoAcquisition() end
|
// DoAcquisition() end
|
||||||
|
|
||||||
StopTicks();
|
StopTicks();
|
||||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||||
return return_value;
|
return return_value;
|
||||||
|
|||||||
Reference in new issue
Block a user