remove debugging
This commit is contained in:
@ -204,12 +204,12 @@ void waiting_for_reply()
|
||||
// Serial.println("A0");
|
||||
if ((*ModbusPort).available()) // is there something to check?
|
||||
{
|
||||
Serial.println("A1");
|
||||
//Serial.println("A1");
|
||||
unsigned char overflowFlag = 0;
|
||||
buffer = 0;
|
||||
while ((*ModbusPort).available())
|
||||
{
|
||||
Serial.println("A2");
|
||||
//Serial.println("A2");
|
||||
// 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
|
||||
// overflow flag will be set and the serial buffer will be read until
|
||||
@ -223,7 +223,7 @@ void waiting_for_reply()
|
||||
overflowFlag = 1;
|
||||
|
||||
frame[buffer] = (*ModbusPort).read();
|
||||
Serial.print("R: "); Serial.println(frame[buffer], 16);
|
||||
//Serial.print("R: "); Serial.println(frame[buffer], 16);
|
||||
buffer++;
|
||||
}
|
||||
// This is not 100% correct but it will suffice.
|
||||
@ -507,7 +507,7 @@ void sendPacket(unsigned char bufferSize)
|
||||
digitalWrite(TxEnablePin, HIGH);
|
||||
|
||||
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]);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user