mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-02-13 10:43:01 +08:00
fix: no more powered antenna when swapping fpga images.
This commit is contained in:
parent
430c6b4b79
commit
5614066a4e
2 changed files with 3 additions and 3 deletions
|
@ -1152,12 +1152,9 @@ void __attribute__((noreturn)) AppMain(void) {
|
|||
// Load the FPGA image, which we have stored in our flash.
|
||||
// (the HF version by default)
|
||||
FpgaDownloadAndGo(FPGA_BITSTREAM_HF);
|
||||
// turn off antenna
|
||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||
|
||||
StartTickCount();
|
||||
|
||||
|
||||
#ifdef WITH_LCD
|
||||
LCDInit();
|
||||
#endif
|
||||
|
|
|
@ -406,6 +406,9 @@ void FpgaDownloadAndGo(int bitstream_version) {
|
|||
|
||||
inflateEnd(&compressed_fpga_stream);
|
||||
|
||||
// turn off antenna
|
||||
FpgaWriteConfWord(FPGA_MAJOR_MODE_OFF);
|
||||
|
||||
// free eventually allocated BigBuf memory
|
||||
BigBuf_free(); BigBuf_Clear_ext(false);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue