cc2520: Add debug prints in case of packet rejection
If current packet is being rejected, it will print some more cc2520 internal insights in debug mode. Change-Id: If63225e7dd025fb239a7bac5638624accfcc7f4f Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com> Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
123c6b8ba2
commit
a47638cdda
1 changed files with 4 additions and 0 deletions
|
@ -888,6 +888,10 @@ static int cc2520_read(void *buf, unsigned short bufsize)
|
|||
return len - FOOTER_LEN;
|
||||
|
||||
error:
|
||||
print_exceptions_0();
|
||||
print_exceptions_1();
|
||||
print_errors();
|
||||
|
||||
flushrx();
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue