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: NerfUS-Coord NerfUSTarget
Fork of APP3_xbee by
Diff: mbed_source/XbeeReceiver.cpp
- Revision:
- 28:d3671aeb50df
- Parent:
- 24:00c42ba87ef7
- Child:
- 29:e28194bc9f6e
--- a/mbed_source/XbeeReceiver.cpp Thu Mar 30 14:09:51 2017 -0400
+++ b/mbed_source/XbeeReceiver.cpp Wed Apr 05 22:19:07 2017 +0000
@@ -5,10 +5,10 @@
}
-void RealXbeeReceiver::start(void (*callback)(vector<uint8_t>, int*))
+void RealXbeeReceiver::start(void (*cb)(vector<uint8_t>, int*))
{
- Thread message_handler_thread(handle_parsed_frames_from_mailbox, &callback);
- Thread message_reader_thread(read_frame);
+ message_handler_thread.start(callback(handle_parsed_frames_from_mailbox, (void *)cb));
+ message_reader_thread.start(read_frame);
while(1)
{
