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.
Dependents: XBeeZB_Receive_Data
Fork of XBeeLib by
Revision 13:09e0b4f5a9e1, committed 2018-04-08
- Comitter:
- Lorenzo Maiorfi
- Date:
- Sun Apr 08 08:01:55 2018 +0200
- Parent:
- 12:8dc9761210c1
- Commit message:
- Disabled reset procedure in XBee::init() method in order to overcome some "nasty" effects on S2C modules.
Changed in this revision
| XBee/XBee.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/XBee/XBee.cpp Sun Mar 25 16:54:52 2018 +0200
+++ b/XBee/XBee.cpp Sun Apr 08 08:01:55 2018 +0200
@@ -135,7 +135,11 @@
_initializing = true;
- const unsigned int max_reset_retries = 3;
+#if defined(ENABLE_THREAD_SAFE_LOGGING)
+ s_thread_for_logging_event_queue.start(callback(&s_logging_event_queue, &EventQueue::dispatch_forever));
+#endif
+
+ /*const unsigned int max_reset_retries = 3;
RadioStatus reset_status;
for (unsigned int i = 0; i < max_reset_retries; i++) {
reset_status = device_reset();
@@ -145,7 +149,7 @@
}
if (reset_status != Success) {
return reset_status;
- }
+ }*/
/* Check if radio is in API1 or API2 _mode */
cmd_resp = get_param("AP", &var32);
@@ -197,12 +201,6 @@
_modem_status_handler->process_frame_data(&frame);
}
-#if defined(ENABLE_THREAD_SAFE_LOGGING)
-
- s_thread_for_logging_event_queue.start(callback(&s_logging_event_queue, &EventQueue::dispatch_forever));
-
-#endif
-
return Success;
}
