diff --git a/platform/redbee-econotag/button-sensor.c b/platform/redbee-econotag/button-sensor.c index 4702f890b..f89cd6544 100644 --- a/platform/redbee-econotag/button-sensor.c +++ b/platform/redbee-econotag/button-sensor.c @@ -56,7 +56,7 @@ void kbi4_isr(void) { static int value(int type) { - return bit_is_set(gpio_data_get((0x1ULL << 26)), 26) || !timer_expired(&debouncetimer); + return GPIO->DATA.GPIO_26 || !timer_expired(&debouncetimer); } static int