treewide: fix warnings

This commit is contained in:
Álvaro Fernández Rojas 2023-06-06 16:40:33 +02:00
parent 60f8c629bf
commit 82afcbedc0
5 changed files with 43 additions and 18 deletions

View file

@ -229,7 +229,7 @@ void Web::begin() {
Serial.print("Received:");
Serial.println(apiServer.arg("plain"));
// Send the command to the shade.
if(target >= 0 && target <= 100)
if(target <= 100)
shade->moveToTiltTarget(target);
else
shade->sendTiltCommand(command);