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: Pi_Swarm_Blank Aggregation-Flocking_2 Pi_Swarm_User_Command_RF_Test
Fork of Pi_Swarm_Library by
Revision 10:5c111c07a2ed, committed 2014-02-18
- Comitter:
- jah128
- Date:
- Tue Feb 18 21:05:32 2014 +0000
- Parent:
- 9:7a4fc1d7e484
- Commit message:
- Remove RF debug statements (these stop TX from working properly)
Changed in this revision
| alpha433.cpp | Show annotated file Show diff for this revision Revisions of this file |
| piswarm.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/alpha433.cpp Tue Feb 18 17:14:03 2014 +0000
+++ b/alpha433.cpp Tue Feb 18 21:05:32 2014 +0000
@@ -91,7 +91,7 @@
checksum_byte ^= cBuffer[i];
}
cTXBuffer[cCount+1] = checksum_byte;
- if(RF_VERBOSE == 1)pc.printf("RF Message: \"%s\" Checksum: %2X\n",cBuffer,checksum_byte);
+ //if(RF_VERBOSE == 1)pc.printf("RF Message: \"%s\" Checksum: %2X\n",cBuffer,checksum_byte);
ssTransmitCount = cCount+3;
// add count and checksum
ssTransmitPointer = -6;
@@ -100,7 +100,7 @@
enableTransmitter();
cRFStatus = ALPHA433_MODE_TRANSMITTING;
- if(RF_VERBOSE == 1)pc.printf("RF Transmitting");
+ //if(RF_VERBOSE == 1)pc.printf("RF Transmitting");
while(ssTransmitPointer <= ssTransmitCount) {
while(_nirq_test);
--- a/piswarm.h Tue Feb 18 17:14:03 2014 +0000 +++ b/piswarm.h Tue Feb 18 21:05:32 2014 +0000 @@ -56,7 +56,7 @@ #define RF_TDMA_TIME_PERIOD_US 15625 #define PISWARM_DEBUG 1 #define RF_DEBUG 1 -#define RF_VERBOSE 1 +#define RF_VERBOSE 0 #define START_RADIO_ON_BOOT 1 #define RF_FREQUENCY 435000000 #define RF_DATARATE 57600
