Fix more warnings seen with "--warnings all"

Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
Álvaro Fernández Rojas 2023-06-01 00:39:56 +02:00
parent a1d4a36379
commit c5e254c9a9
3 changed files with 6 additions and 6 deletions

View file

@ -165,7 +165,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->moveToTarget(target);
else
shade->sendCommand(command, repeat);
@ -686,7 +686,7 @@ void Web::begin() {
Serial.print("Received:");
Serial.println(server.arg("plain"));
// Send the command to the shade.
if(target >= 0 && target <= 100)
if(target <= 100)
shade->moveToTiltTarget(target);
else
shade->sendTiltCommand(command);
@ -753,7 +753,7 @@ void Web::begin() {
Serial.print("Received:");
Serial.println(server.arg("plain"));
// Send the command to the shade.
if(target >= 0 && target <= 100)
if(target <= 100)
shade->moveToTarget(target);
else
shade->sendCommand(command, repeat);