Fix corrupted data caused by CMD_WTX
No need to wait for 2.5s (1s + FPGA_LOAD_WAIT_TIME) if the real-time sampling stops. Make sure the LF bitstream is loaded before real-time sampling so the response of CMD_WTX won't appear.
This commit is contained in:
6 files changed
+32
-19
No files matched your search
+1
-1
@@ -1105,7 +1105,7 @@ static int CmdBreak(const char *Cmd) {
|
||||
}
|
||||
|
||||
int set_fpga_mode(uint8_t mode) {
|
||||
if (mode < 1 || mode > 4) {
|
||||
if (mode < FPGA_BITSTREAM_LF || mode > FPGA_BITSTREAM_HF_15) {
|
||||
return PM3_EINVARG;
|
||||
}
|
||||
uint8_t d[] = {mode};
|
||||
|
||||
Reference in new issue
Block a user