From 2523730fc7e5ca81ac9f2fce31c78b294ff4eb24 Mon Sep 17 00:00:00 2001 From: Matthias Prinke Date: Wed, 8 May 2024 11:42:54 +0200 Subject: [PATCH] RP2040: Fixed compiler warnings --- .../src/WeatherSensor.cpp | 10 +++++----- .../BresserWeatherSensorMQTTCustom/src/WeatherSensor.h | 2 +- library.properties | 2 +- package.json | 2 +- src/WeatherSensor.cpp | 10 +++++----- src/WeatherSensor.h | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) 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