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:
- 24:00c42ba87ef7
- Parent:
- 23:2b67589150d9
- Child:
- 25:64ea9e695a1f
diff -r 2b67589150d9 -r 00c42ba87ef7 mbed_source/XbeeReceiver.cpp
--- a/mbed_source/XbeeReceiver.cpp Wed Apr 05 20:27:53 2017 +0000
+++ b/mbed_source/XbeeReceiver.cpp Wed Apr 05 21:09:32 2017 +0000
@@ -7,9 +7,9 @@
void RealXbeeReceiver::start(void (*callback)(vector<uint8_t>, int*))
{
- message_handler_thread.start(handle_parsed_frames_from_mailbox(callback));
- message_reader_thread.start(read_frame);
-
+ Thread message_handler_thread(handle_parsed_frames_from_mailbox, &callback);
+ Thread message_reader_thread(read_frame);
+
while(1)
{
}
