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

@ -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