base station for dump truck
Fork of nRF24L01P_Hello_World by
Revision 4:3c37c857665c, committed 2017-04-25
- Comitter:
- simplyellow
- Date:
- Tue Apr 25 21:00:20 2017 +0000
- Parent:
- 3:bb1102948ba5
- Commit message:
- cleaned up a little;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Tue Apr 25 05:25:18 2017 +0000
+++ b/main.cpp Tue Apr 25 21:00:20 2017 +0000
@@ -22,12 +22,6 @@
// ...read the data into the receive buffer
rxDataCnt = my_nrf24l01p.read( NRF24L01P_PIPE_P0, rxData, sizeof(rxData));
// match with ack array
- //for ( int i = 0; rxDataCnt > 0; rxDataCnt--, i++ ) {
-// if(rxData[i] == acked[i]) {
-// matched++;
-// }
-// }
- //printf("%d \r\n", strcmp(rxData, acked));
if(strcmp(rxData, acked)==-1) {
pc.printf("ACK\n\r");
ack = true;
