Tidy up code by removing now unused rx buffer and other dead code/comments.

git-svn-id: svn+ssh://oldsvn/home/mlalondesvn/svn/cral@78 3ee9b42a-b53c-0410-a25e-f0b6218d5d5b
master
follower 17 years ago
parent b2fe6b8e9c
commit a099cfd0af

@ -233,11 +233,8 @@ void loop() {
Serial.println(ip[3], DEC); Serial.println(ip[3], DEC);
// TODO: Avoid buffer overflows in both cases... // TODO: Avoid buffer overflows...
#define MAX_RX_BUFFER_SIZE 5
#define MAX_TX_BUFFER_SIZE 200 #define MAX_TX_BUFFER_SIZE 200
uint8_t bytesReceived[MAX_RX_BUFFER_SIZE]; // NOTE: Actual buffer should be larger.
uint8_t bytesToSend[MAX_TX_BUFFER_SIZE]; uint8_t bytesToSend[MAX_TX_BUFFER_SIZE];
//sendBanner(bytesReceived); //sendBanner(bytesReceived);
@ -264,7 +261,6 @@ void loop() {
while (getSn_SR(testSocket) == SOCK_ESTABLISHED) { while (getSn_SR(testSocket) == SOCK_ESTABLISHED) {
while (getSn_RX_RSR(testSocket) > 0) { while (getSn_RX_RSR(testSocket) > 0) {
theByte = readByte(); theByte = readByte();
//Serial.print(bytesReceived[0], BYTE);
Serial.print(theByte, BYTE); Serial.print(theByte, BYTE);
if ((state == STATE_G) && (theByte == 'G')) { if ((state == STATE_G) && (theByte == 'G')) {
state = STATE_E; state = STATE_E;

Loading…
Cancel
Save