]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/fpgaloader.c
SetAdcMuxFor - optional
[proxmark3-svn] / armsrc / fpgaloader.c
index 1deb5b7dd09c1c19f0c103c580a15623b5c67a4e..faaa7983f51224f37226a59d088e798775f3e73d 100644 (file)
@@ -434,6 +434,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); 
 }      
@@ -555,7 +558,8 @@ void SetAdcMuxFor(uint32_t whichGpio)
        LOW(GPIO_MUXSEL_LORAW);
        LOW(GPIO_MUXSEL_LOPKD);
 
-       HIGH(whichGpio);
+       if (whichGpio > 0)
+               HIGH(whichGpio);
 }
 
 void Fpga_print_status(void) {
Impressum, Datenschutz