mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 19:12:10 +01:00
Fix more warnings seen with "--warnings all"
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
This commit is contained in:
parent
a1d4a36379
commit
c5e254c9a9
3 changed files with 6 additions and 6 deletions
6
Web.cpp
6
Web.cpp
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue