Projet S5 info - Advanced version
Dependencies: XBeeLib mbed-rtos mbed
Fork of Capteurs-Beginner by
Revision 11:c37c1c02a798, committed 2016-04-14
- Comitter:
- vinbel93
- Date:
- Thu Apr 14 14:43:37 2016 +0000
- Parent:
- 9:6959e3ebe7f2
- Commit message:
- Final Advanced Version 2
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 6959e3ebe7f2 -r c37c1c02a798 main.cpp --- a/main.cpp Thu Apr 14 14:39:29 2016 +0000 +++ b/main.cpp Thu Apr 14 14:43:37 2016 +0000 @@ -51,14 +51,12 @@ void envoi_donnees (void const *args) { capt_lock.lock(); - uint8_t data[3]; + uint8_t data[2]; data[0] = (capt_1 << 7) | (capt_2 << 6) | (capt_3 << 5) | (capt_4 << 4) | (capt_5 << 3) | (capt_6 << 2); data[1] = (GP2D12_value & 0xFF00) >> 8; capt_lock.unlock(); - pc.printf("%x \n\r", GP2D12_value); - pc.printf("%02x %02x %02x\n\r", data[0], data[1], data[2]); - + send_data_to_coordinator(data); }