From 1b2878baa45f6b81d271eb0028a47febc6023da9 Mon Sep 17 00:00:00 2001 From: "Enric M. Calvo" Date: Wed, 16 Feb 2011 16:18:27 +0100 Subject: [PATCH] Corrected some typos in the PORT1 ISR function. --- platform/z1/dev/adxl345.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/z1/dev/adxl345.c b/platform/z1/dev/adxl345.c index 8821b8e2d..14f6ec7b7 100644 --- a/platform/z1/dev/adxl345.c +++ b/platform/z1/dev/adxl345.c @@ -376,7 +376,7 @@ static struct timer suppressTimer1, suppressTimer2; interrupt(PORT1_VECTOR) port1_isr (void) { ENERGEST_ON(ENERGEST_TYPE_IRQ); /* ADXL345_IFG.x goes high when interrupt occurs, use to check what interrupted */ - if ((ADXL345_IFG & ADXL345_INT1_PIN) && !!(ADXL345_IFG & CC2420_FIFOP_PIN)){ + if ((ADXL345_IFG & ADXL345_INT1_PIN) && !(ADXL345_IFG & BV(CC2420_FIFOP_PIN))){ /* Check if this should be suppressed or not */ if(timer_expired(&suppressTimer1)) { timer_set(&suppressTimer1, SUPPRESS_TIME_INT1); @@ -384,7 +384,7 @@ interrupt(PORT1_VECTOR) port1_isr (void) { process_poll(&accmeter_process); LPM4_EXIT; } - } else if ((ADXL345_IFG & ADXL345_INT2_PIN) && !!(ADXL345_IFG & CC2420_FIFOP_PIN)){ + } else if ((ADXL345_IFG & ADXL345_INT2_PIN) && !(ADXL345_IFG & BV(CC2420_FIFOP_PIN))){ /* Check if this should be suppressed or not */ if(timer_expired(&suppressTimer2)) { timer_set(&suppressTimer2, SUPPRESS_TIME_INT2);