diff --git a/examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp b/examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp index 0ccfb3ea..fcdeb05e 100644 --- a/examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp +++ b/examples/BresserWeatherSensorMQTTCustom/src/WeatherSensor.cpp @@ -255,7 +255,7 @@ bool WeatherSensor::getData(uint32_t timeout, uint8_t flags, uint8_t type, void bool all_slots_valid = true; bool all_slots_complete = true; - for (int i = 0; i < sensor.size(); i++) + for (size_t i = 0; i < sensor.size(); i++) { if (!sensor[i].valid) { @@ -291,7 +291,7 @@ bool WeatherSensor::getData(uint32_t timeout, uint8_t flags, uint8_t type, void radio.standby(); return true; } - } // for (int i=0; i maintainer=Matthias Prinke sentence=Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver for Arduino based on CC1101, SX1276/RFM95W or SX1262. diff --git a/package.json b/package.json index 8f73325a..5b1db370 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "BresserWeatherSensorReceiver", - "version": "0.28.0", + "version": "0.28.1", "description": "Bresser 5-in-1/6-in-1/7-in-1 868 MHz Weather Sensor Radio Receiver for Arduino based on CC1101, SX1276/RFM95W or SX1262", "main": "WeatherSensor.cpp", "frameworks": "arduino", diff --git a/src/WeatherSensor.cpp b/src/WeatherSensor.cpp index 0ccfb3ea..fcdeb05e 100644 --- a/src/WeatherSensor.cpp +++ b/src/WeatherSensor.cpp @@ -255,7 +255,7 @@ bool WeatherSensor::getData(uint32_t timeout, uint8_t flags, uint8_t type, void bool all_slots_valid = true; bool all_slots_complete = true; - for (int i = 0; i < sensor.size(); i++) + for (size_t i = 0; i < sensor.size(); i++) { if (!sensor[i].valid) { @@ -291,7 +291,7 @@ bool WeatherSensor::getData(uint32_t timeout, uint8_t flags, uint8_t type, void radio.standby(); return true; } - } // for (int i=0; i