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:
wh201906 committed 2023-12-02 17:04:03 +08:00
1 parent f3a9629895
commit bb529a9077
6 files changed
+32 -19

No files matched your search

+1 -1
View File
@@ -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};