From: Iceman Date: Sun, 11 Feb 2018 16:31:48 +0000 (+0100) Subject: SetAdcMuxFor - optional X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/proxmark3-svn/commitdiff_plain/79d5d9d1c681d2c98950c2655da25b0eae6d67df SetAdcMuxFor - optional Setting gpio port optional. --- diff --git a/armsrc/fpgaloader.c b/armsrc/fpgaloader.c index c0b04f3c..faaa7983 100644 --- a/armsrc/fpgaloader.c +++ b/armsrc/fpgaloader.c @@ -558,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) {