]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - armsrc/appmain.c
Update appmain.c
[proxmark3-svn] / armsrc / appmain.c
index 3aeb4c8af2de37b0fd76f55d6c47f6b63c9368f8..507cc6aea85188d23945a6ac5778edd7ff796701 100644 (file)
@@ -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);
Impressum, Datenschutz