Skip to content

Commit

Permalink
Optimise button press interval for most acurate temperature temp changes
Browse files Browse the repository at this point in the history
  • Loading branch information
netmindz committed Apr 13, 2024
1 parent a0aa926 commit a63a9c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sensor/src/sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -929,7 +929,7 @@ void sendCommand() {
if (sendBuffer.isEmpty()) {
return;
}
if((millis() - lastCmdTime) >= 500) {
if((millis() - lastCmdTime) >= 400) {
lastCmdTime = millis();
commandPending = true;
digitalWrite(RTS_PIN_DEF, HIGH);
Expand Down

0 comments on commit a63a9c2

Please sign in to comment.