From 79d5d9d1c681d2c98950c2655da25b0eae6d67df Mon Sep 17 00:00:00 2001 From: Iceman Date: Sun, 11 Feb 2018 17:31:48 +0100 Subject: [PATCH] SetAdcMuxFor - optional Setting gpio port optional. --- armsrc/fpgaloader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) { -- 2.39.5