From 396c1ce0152d6634fa59a028dc7c919c52bd34c2 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Sat, 1 Dec 2018 14:20:26 +0100 Subject: [PATCH] A little bit more readable --- drivers/gpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio.c b/drivers/gpio.c index 5d90c2e..fcecc93 100644 --- a/drivers/gpio.c +++ b/drivers/gpio.c @@ -200,7 +200,7 @@ void PIO_0_Handler(void) /* Call interrupt handlers */ while (status) { - if (status & 1) { + if (status & 0x01) { /* Is there an handler for this one ? */ if (gpio_callbacks_port0[i] != NULL) { gpio_callbacks_port0[i](i); @@ -220,7 +220,7 @@ void PIO_1_Handler(void) /* Call interrupt handlers */ while (status) { - if (status & 1) { + if (status & 0x01) { /* Is there an handler for this one ? */ if (gpio_callbacks_port1[i] != NULL) { gpio_callbacks_port1[i](i); @@ -240,7 +240,7 @@ void PIO_2_Handler(void) /* Call interrupt handlers */ while (status) { - if (status & 1) { + if (status & 0x01) { /* Is there an handler for this one ? */ if (gpio_callbacks_port2[i] != NULL) { gpio_callbacks_port2[i](i); -- 2.43.0