Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Mar 15, 2022
1 parent 77e6215 commit 13efc43
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions sensor/sensor.ino
Original file line number Diff line number Diff line change
Expand Up @@ -256,14 +256,15 @@ void handleBytes(uint8_t buf[], size_t len) {
// Serial.printf("temp = %f\n", tubTemp);
}
else if (result.substring(10, 12) == "2d") {
Serial.println("temp = unknown");
// Serial.println("temp = unknown");
// telnetSend("temp = unknown");
}
else {
Serial.println("non-temp " + result);
telnetSend("non-temp " + result);
}

// If messages is temp or ---- for temp, it is status message
if(result.substring(10, 12) == "43" || result.substring(10, 12) == "2d") {
String pump = result.substring(13, 14);
if (pump == "0") {
Expand Down Expand Up @@ -317,19 +318,8 @@ void handleBytes(uint8_t buf[], size_t len) {
lastRaw7 = result.substring(46, 64);
}

// if (lastRaw2 != result) {
// newData = true;
// lastRaw2 = result;
// }

// end of FA14
}
// else if (result.substring(0, 2) == "fb") {
// if (lastRaw2 != result) {
// newData = true;
// lastRaw2 = result;
// }
// }
else if (result.substring(0, 6) == "ae0d00") {
if (lastRaw3 != result && result != "ae0d000000000000000000000000002d") {
newData = true;
Expand Down

0 comments on commit 13efc43

Please sign in to comment.