From 5913dc0cd476e27ea64cf459bd37b9269347675d Mon Sep 17 00:00:00 2001 From: Ravi kumar Veeramally Date: Fri, 26 Feb 2016 15:11:13 +0200 Subject: [PATCH] cc2520: Fix resetting of CC2520_EXCFLAG0 setreg(CC2520_EXCFLAG0, 0) is in print_radio_status(), it should be in print_exceptions_0(). Change-Id: I62bd366b850f0a1abef651cfa8de8939b6c30685 Signed-off-by: Ravi kumar Veeramally --- drivers/802.15.4/cc2520.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/802.15.4/cc2520.c b/drivers/802.15.4/cc2520.c index 0007f95b0ae..7627234da27 100644 --- a/drivers/802.15.4/cc2520.c +++ b/drivers/802.15.4/cc2520.c @@ -189,8 +189,6 @@ static void print_radio_status(void) DBG("RX_ACTIVE "); } DBG("\n"); - - setreg(CC2520_EXCFLAG0, 0); } static inline void print_exceptions_0(void) @@ -223,6 +221,8 @@ static inline void print_exceptions_0(void) DBG("RXENABLE_ZERO"); } DBG("\n"); + + setreg(CC2520_EXCFLAG0, 0); } static inline void print_exceptions_1(void)