mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 11:02:12 +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
2
MQTT.cpp
2
MQTT.cpp
|
|
@ -35,7 +35,7 @@ void MQTTClass::receive(const char *topic, byte*payload, uint32_t length) {
|
|||
//Serial.println();
|
||||
|
||||
// We need to start at the last slash in the data
|
||||
uint16_t ndx = strlen(topic) - 1;
|
||||
int16_t ndx = strlen(topic) - 1;
|
||||
// ------------------+
|
||||
// shades/1/target/set
|
||||
while(ndx >= 0 && topic[ndx] != '/') ndx--; // Back off the set command
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue