From a70a51acc20d79f61b5002d546467025356d5f45 Mon Sep 17 00:00:00 2001 From: Harald Pichler Date: Fri, 19 Aug 2016 18:18:09 +0200 Subject: [PATCH] fake return value to 0 for better range, function rf230_cca have a bug --- cpu/avr/radio/rf230bb/rf230bb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cpu/avr/radio/rf230bb/rf230bb.c b/cpu/avr/radio/rf230bb/rf230bb.c index a6b7572cf..624018f36 100644 --- a/cpu/avr/radio/rf230bb/rf230bb.c +++ b/cpu/avr/radio/rf230bb/rf230bb.c @@ -1796,7 +1796,8 @@ rf230_cca(void) // if (cca & 0x40) {/*DEBUGFLOW('3')*/;} else {rf230_pending=1;DEBUGFLOW('4');} if (cca & 0x40) { // DEBUGFLOW('5'); - return 1; +// return 1; + return 0; } else { // DEBUGFLOW('6'); busyexit: