diff --git a/PositionGaugeServer.ino b/PositionGaugeServer.ino index 0ed8e10ba2d1a697d294d4ebb29eea1812a7e277..7ffd7002bc392e6234f1c453b140c74de4031f27 100644 --- a/PositionGaugeServer.ino +++ b/PositionGaugeServer.ino @@ -557,6 +557,10 @@ void TXTserver (uint8_t ch) { //clients[i].println(ch); //Feed the new client some data right away + if(measData[ch] >= 0) { + //Add the '+' so that the string is always the same length + clients[i].print('+'); + } clients[i].print(measData[ch],3); if (measDataIsValid[ch]) { if (measDataIsMm[ch]) { @@ -595,6 +599,10 @@ void TXTserver (uint8_t ch) { if (measDataFresh[ch]) { for (byte i = 0; i < MAX_SOCK_NUM; i++) { if (clients[i] && (clients_ch[i]==ch)) { + if(measData[ch] >= 0) { + //Add the '+' so that the string is always the same length + clients[i].print('+'); + } clients[i].print(measData[ch],3); if (measDataIsValid[ch]) { if (measDataIsMm[ch]) {