remove debugging

This commit is contained in:
hg
2015-05-18 22:07:51 +02:00
parent 023e557014
commit 2e8aaedf54

View File

@ -204,12 +204,12 @@ void waiting_for_reply()
// Serial.println("A0"); // Serial.println("A0");
if ((*ModbusPort).available()) // is there something to check? if ((*ModbusPort).available()) // is there something to check?
{ {
Serial.println("A1"); //Serial.println("A1");
unsigned char overflowFlag = 0; unsigned char overflowFlag = 0;
buffer = 0; buffer = 0;
while ((*ModbusPort).available()) while ((*ModbusPort).available())
{ {
Serial.println("A2"); //Serial.println("A2");
// The maximum number of bytes is limited to the serial buffer size // The maximum number of bytes is limited to the serial buffer size
// of BUFFER_SIZE. If more bytes is received than the BUFFER_SIZE the // of BUFFER_SIZE. If more bytes is received than the BUFFER_SIZE the
// overflow flag will be set and the serial buffer will be read until // overflow flag will be set and the serial buffer will be read until
@ -223,7 +223,7 @@ void waiting_for_reply()
overflowFlag = 1; overflowFlag = 1;
frame[buffer] = (*ModbusPort).read(); frame[buffer] = (*ModbusPort).read();
Serial.print("R: "); Serial.println(frame[buffer], 16); //Serial.print("R: "); Serial.println(frame[buffer], 16);
buffer++; buffer++;
} }
// This is not 100% correct but it will suffice. // This is not 100% correct but it will suffice.
@ -507,7 +507,7 @@ void sendPacket(unsigned char bufferSize)
digitalWrite(TxEnablePin, HIGH); digitalWrite(TxEnablePin, HIGH);
for (unsigned char i = 0; i < bufferSize; i++) { for (unsigned char i = 0; i < bufferSize; i++) {
Serial.print("S: "); Serial.println(frame[i],16); //Serial.print("S: "); Serial.println(frame[i],16);
(*ModbusPort).write(frame[i]); (*ModbusPort).write(frame[i]);
} }