Merge pull request #2152 from pjsg/fix-no-int

Make it build without INTERRUPT_ENABLE
This commit is contained in:
Terry Ellison 2017-10-29 18:19:40 +00:00 committed by GitHub
commit ffc914dad0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -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