]> git.zerfleddert.de Git - proxmark3-svn/commitdiff
SetAdcMuxFor - optional
authorIceman <iceman@iuse.se>
Sun, 11 Feb 2018 16:31:48 +0000 (17:31 +0100)
committerGitHub <noreply@github.com>
Sun, 11 Feb 2018 16:31:48 +0000 (17:31 +0100)
Setting gpio port optional.

armsrc/fpgaloader.c

index c0b04f3cc99c4aa09526dd5a57f71fbec827b4cb..faaa7983f51224f37226a59d088e798775f3e73d 100644 (file)
@@ -558,7 +558,8 @@ void SetAdcMuxFor(uint32_t whichGpio)
        LOW(GPIO_MUXSEL_LORAW);
        LOW(GPIO_MUXSEL_LOPKD);
 
        LOW(GPIO_MUXSEL_LORAW);
        LOW(GPIO_MUXSEL_LOPKD);
 
-       HIGH(whichGpio);
+       if (whichGpio > 0)
+               HIGH(whichGpio);
 }
 
 void Fpga_print_status(void) {
 }
 
 void Fpga_print_status(void) {
Impressum, Datenschutz