fd
Dependents: xtoff3 CYS_Receiver
Fork of RF24Network by
Diff: Sync.cpp
- Revision:
- 4:75c5aa56411f
- Parent:
- 0:c3db0798d9aa
- Child:
- 5:b1110d26a900
--- a/Sync.cpp Thu Nov 05 05:54:47 2015 +0000 +++ b/Sync.cpp Thu Apr 21 03:43:13 2016 +0000 @@ -5,7 +5,16 @@ modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. */ - + +/* + * Mbed support added by Akash Vibhute <akash.roboticist@gmail.com> + * Porting completed on Nov/05/2015 + * + * Updated 1: Synced with TMRh20's RF24 library on Nov/04/2015 from https://github.com/TMRh20 + * Updated 2: Synced with TMRh20's RF24 library on Apr/18/2015 from https://github.com/TMRh20 + * + */ + // STL headers // C headers #include <stdlib.h> @@ -65,6 +74,7 @@ { case 'S': //IF_SERIAL_DEBUG(printf_P(PSTR("%lu: SYN Received sync message\n\r"),millis())); + IF_SERIAL_DEBUG(printf_P(PSTR("SYN Received sync message\n\r"))); network.read(header,&message,sizeof(message)); // Parse the message and update the vars @@ -79,6 +89,7 @@ uint8_t val = *mptr++; //IF_SERIAL_DEBUG(printf_P(PSTR("%lu: SYN Updated position %u to value %u\n\r"),millis(),pos,val)); + IF_SERIAL_DEBUG(printf_P(PSTR("%SYN Updated position %u to value %u\n\r"),pos,val)); app_data[pos] = val; internal_data[pos] = val; @@ -91,3 +102,5 @@ } } // vim:cin:ai:sts=2 sw=2 ft=cpp + +