Skip to content
Snippets Groups Projects
Commit 435a3ede authored by nrs1g15's avatar nrs1g15
Browse files

Removed additional pins since shield does not support them

parent bd3e71fc
No related branches found
No related tags found
No related merge requests found
...@@ -38,7 +38,8 @@ void wirelessWrite(void *data, uint8_t len) ...@@ -38,7 +38,8 @@ void wirelessWrite(void *data, uint8_t len)
void wirelessProcess() void wirelessProcess()
{ {
if (!digitalRead(XBEE_RTS_PIN)) { if (cirBufferAvailable(&wirelessTxCirBuffer) >= WIRELESS_PAYLOAD_LEN) {
// if (!digitalRead(XBEE_RTS_PIN)) {
if (XBEE_SERIAL.availableForWrite() >= WIRELESS_PAYLOAD_LEN) { if (XBEE_SERIAL.availableForWrite() >= WIRELESS_PAYLOAD_LEN) {
static uint8_t payload[WIRELESS_PAYLOAD_LEN]; static uint8_t payload[WIRELESS_PAYLOAD_LEN];
...@@ -49,5 +50,6 @@ void wirelessProcess() ...@@ -49,5 +50,6 @@ void wirelessProcess()
xbee.send(tx64Request); xbee.send(tx64Request);
} }
// }
} }
} }
\ No newline at end of file
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#define XBEE_RTS_PIN 7 #define XBEE_RTS_PIN 7
#define XBEE_SERIAL_BAUD_RATE 115200 #define XBEE_SERIAL_BAUD_RATE 115200
#define XBEE_SERIAL Serial1 #define XBEE_SERIAL Serial
#define WIRELESS_TX_BUFFER_LEN 256 #define WIRELESS_TX_BUFFER_LEN 256
#define WIRELESS_PAYLOAD_LEN 32 #define WIRELESS_PAYLOAD_LEN 32
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment