From f17b5ebf595f71c27348219d656532bd07f9cd6e Mon Sep 17 00:00:00 2001 From: philip Date: Sun, 29 Oct 2017 10:35:24 -0400 Subject: [PATCH] Make it build without INTERRUPT_ENABLE --- app/modules/gpio.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/modules/gpio.c b/app/modules/gpio.c index 21f1d2fd..3ea4f5bc 100644 --- a/app/modules/gpio.c +++ b/app/modules/gpio.c @@ -132,7 +132,13 @@ static int lgpio_mode( lua_State* L ) NODE_DBG("pin,mode,pullup= %d %d %d\n",pin,mode,pullup); NODE_DBG("Pin data at mode: %d %08x, %d %d %d, %08x\n", - pin, pin_mux[pin], pin_num[pin], pin_func[pin], pin_int_type[pin], gpio_cb_ref[pin]); + pin, pin_mux[pin], pin_num[pin], pin_func[pin], +#ifdef GPIO_INTERRUPT_ENABLE + pin_int_type[pin], gpio_cb_ref[pin] +#else + 0, 0 +#endif + ); #ifdef GPIO_INTERRUPT_ENABLE if (mode != INTERRUPT){ // disable interrupt