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.
Fork of football_project by
Diff: Radio.cpp
- Revision:
- 26:40a0c775ff27
- Parent:
- 23:26f27c462976
- Child:
- 28:8e74ddc4f70f
--- a/Radio.cpp Tue Dec 15 12:11:05 2015 +0000
+++ b/Radio.cpp Wed Dec 30 14:00:28 2015 +0000
@@ -3,11 +3,6 @@
#include "types.h"
#include "TA.h"
-#ifdef MASTER
-#define NODE_ID 1
-#else
-#define NODE_ID 2
-#endif
#define NETWORKID 101 //the same on all nodes that talk to each other
#define FREQUENCY RF69_915MHZ
@@ -50,7 +45,7 @@
return;
}
- writeToPhone("Sending message: %c to: %d\r\n", m->command, m->cone);
+ //writeToPhone("Sending message: %c to: %d\r\n", m->command, m->cone);
payload[0] = (byte)m->command;
payload[4] = (byte)m->value & 255;
@@ -80,13 +75,13 @@
if (radio.receiveDone())
{
- writeToPhone("Received: %d bytes", radio.DATALEN);
+ //writeToPhone("Received: %d bytes", radio.DATALEN);
if (radio.DATALEN < 6)
{
return false;
}
- writeToPhone("Got message from: %d\r\n", radio.SENDERID);
+ //writeToPhone("Got message from: %d\r\n", radio.SENDERID);
m->cone = radio.SENDERID;
m->command = radio.DATA[0];
