From 9a473427badd8c94ce8ac0dcb0524cfa6a4a20ab Mon Sep 17 00:00:00 2001 From: John Melton G0ORX Date: Wed, 20 May 2020 14:06:49 +0100 Subject: [PATCH] Fixed reference ENABLE_CW_BUTTNS AND ENABLE_GPIO_SIDETONE when LOCALCW not defined --- gpio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gpio.c b/gpio.c index d6d22d6..4a48aad 100644 --- a/gpio.c +++ b/gpio.c @@ -1330,6 +1330,7 @@ void gpio_restore_state() { } +#ifdef LOCALCW if(controller==CONTROLLER2_V2) { // // In Controller2 V2, no 'free' GPIO pins @@ -1339,6 +1340,7 @@ void gpio_restore_state() { ENABLE_CW_BUTTONS=0; ENABLE_GPIO_SIDETONE=0; } +#endif } -- 2.45.2