Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: DigiLogger
Fork of XBeeLib_vs by
Diff: FrameHandlers/FH_RxPacketZB.cpp
- Revision:
- 4:629712865107
- Parent:
- 0:fcaad0dfa051
diff -r 8662ebe83570 -r 629712865107 FrameHandlers/FH_RxPacketZB.cpp
--- a/FrameHandlers/FH_RxPacketZB.cpp Mon May 18 13:16:55 2015 +0200
+++ b/FrameHandlers/FH_RxPacketZB.cpp Mon Jun 01 18:59:43 2015 +0200
@@ -24,16 +24,14 @@
{
}
-/** */
void FH_RxPacketZB::register_receive_cb(receive_zb_cb_t function)
{
- receive_cb = function;
+ receive_cb = function;
}
-/** */
void FH_RxPacketZB::unregister_receive_cb(void)
{
- receive_cb = NULL;
+ receive_cb = NULL;
}
/* ZB RX packet offsets */
@@ -45,13 +43,13 @@
#define BROADCAST_PACKET 0x02
-/** */
void FH_RxPacketZB::process_frame_data(const ApiFrame *const frame)
{
- /* The caller checks that the type matches, so no need to check it here again */
+ /* The caller checks that the type matches, so no need to check it here again */
- if (receive_cb == NULL)
+ if (receive_cb == NULL) {
return;
+ }
/* We got a rx packet, decode it... */
const uint8_t *datap = frame->get_data();
