X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/blobdiff_plain/fc175230f431e7e33c7628c6b31064d4f7d1e1ad..refs/heads/iceman1001-patch-1:/armsrc/appmain.c diff --git a/armsrc/appmain.c b/armsrc/appmain.c index 3aeb4c8a..507cc6ae 100644 --- a/armsrc/appmain.c +++ b/armsrc/appmain.c @@ -205,7 +205,7 @@ void MeasureAntennaTuningLfOnly(int *vLf125, int *vLf134, int *peakf, int *peakv } } - for (i=0; i <= 18; i++) LF_Results[i] = 0; + for (i=18; i >= 0; i--) LF_Results[i] = 0; return; } @@ -1408,6 +1408,9 @@ void __attribute__((noreturn)) AppMain(void) // Reset SSC AT91C_BASE_SSC->SSC_CR = AT91C_SSC_SWRST; + // Configure MUX + SetAdcMuxFor(0); + // Load the FPGA image, which we have stored in our flash. // (the HF version by default) FpgaDownloadAndGo(FPGA_BITSTREAM_HF);