From c565e2b90d091ec80ef4620dd668407e951edea6 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Wed, 26 Aug 2015 10:49:00 +1000 Subject: [PATCH] gpio.h: Explicit cast to enum type (needed for g++) --- core/include/esp/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/include/esp/gpio.h b/core/include/esp/gpio.h index 1f1ce14..679fff2 100644 --- a/core/include/esp/gpio.h +++ b/core/include/esp/gpio.h @@ -124,7 +124,7 @@ INLINED void gpio_set_interrupt(const uint8_t gpio_num, const gpio_inttype_t int /* Return the interrupt type set for a pin */ INLINED gpio_inttype_t gpio_get_interrupt(const uint8_t gpio_num) { - return FIELD2VAL(GPIO_CONF_INTTYPE, GPIO.CONF[gpio_num]); + return (gpio_inttype_t)FIELD2VAL(GPIO_CONF_INTTYPE, GPIO.CONF[gpio_num]); } #endif