From: Iceman <iceman@iuse.se>
Date: Thu, 30 Nov 2017 11:46:40 +0000 (+0100)
Subject: Update fpgaloader.c (#500)
X-Git-Tag: v3.1.0~114
X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/dc93020701a50f1b593be08ccf0efa391670ce0f

Update fpgaloader.c (#500)

This address part1 in issue https://github.com/Proxmark/proxmark3/issues/499

Device power out 13.56Mhz when started (initialised). This output is not stopped until arbitary command is sent.
---

diff --git a/armsrc/fpgaloader.c b/armsrc/fpgaloader.c
index 1deb5b7d..c0b04f3c 100644
--- a/armsrc/fpgaloader.c
+++ b/armsrc/fpgaloader.c
@@ -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);	
 }