From 91a6ce65767f982ae3b76934733fb94d7908e401 Mon Sep 17 00:00:00 2001 From: MakA Date: Thu, 17 Nov 2016 11:39:47 +0200 Subject: [PATCH] Fixed checking of the cc1200 GPIO0 pin status. --- platform/zoul/dev/cc1200-zoul-arch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/zoul/dev/cc1200-zoul-arch.c b/platform/zoul/dev/cc1200-zoul-arch.c index 0df21a037..4497bab18 100644 --- a/platform/zoul/dev/cc1200-zoul-arch.c +++ b/platform/zoul/dev/cc1200-zoul-arch.c @@ -241,7 +241,7 @@ cc1200_arch_gpio2_disable_irq(void) int cc1200_arch_gpio0_read_pin(void) { - return GPIO_READ_PIN(CC1200_GDO0_PORT_BASE, CC1200_GDO0_PIN_MASK); + return (GPIO_READ_PIN(CC1200_GDO0_PORT_BASE, CC1200_GDO0_PIN_MASK) ? 1 : 0); } /*---------------------------------------------------------------------------*/ int