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_ModemStatus.cpp
- Revision:
- 4:629712865107
- Parent:
- 3:8662ebe83570
--- a/FrameHandlers/FH_ModemStatus.cpp Mon May 18 13:16:55 2015 +0200
+++ b/FrameHandlers/FH_ModemStatus.cpp Mon Jun 01 18:59:43 2015 +0200
@@ -22,24 +22,23 @@
{
}
-/** */
void FH_ModemStatus::register_modem_status_cb(modem_status_cb_t function)
{
- modem_status_cb = function;
+ modem_status_cb = function;
}
-/** */
void FH_ModemStatus::unregister_modem_status_cb(void)
{
- modem_status_cb = NULL;
+ modem_status_cb = NULL;
}
void FH_ModemStatus::process_frame_data(const ApiFrame *const frame)
{
- /* The caller checks that the type matches, so no need to check it here again */
-
- if (modem_status_cb == NULL)
+ /* The caller checks that the type matches, so no need to check it here again */
+
+ if (modem_status_cb == NULL) {
return;
+ }
modem_status_cb((AtCmdFrame::ModemStatus)frame->get_data_at(0));
}
