Remove strange character from source.

This commit is contained in:
Henrik Ekblad
2015-11-08 21:47:53 +01:00
parent e2c1f4e365
commit ab60ae11d4
@@ -184,14 +184,10 @@ bool _readFromClient(uint8_t i) {
char inChar = clients[i].read();
if (inputString[i].idx < MY_GATEWAY_MAX_RECEIVE_LENGTH - 1) {
// if newline then command is complete
if (inChar == '\n' || inChar == '\r') {
// A command was issued by the client
// we will now try to send it to the actuator
// echo the string to the serial port
debug(PSTR("Client %d: %s\n"), i, inputString[i].string);
if (inChar == '\n' || inChar == '\r') {
// Add string terminator and prepare for the next message
inputString[i].string[inputString[i].idx] = 0;
debug(PSTR("Client %d: %s\n"), i, inputString[i].string);
inputString[i].idx = 0;
if (protocolParse(_ethernetMsg, inputString[i].string)) {
return true;