Skip to content

Commit

Permalink
Change type of loop var
Browse files Browse the repository at this point in the history
  • Loading branch information
matthias-bs committed May 8, 2024
1 parent 835a397 commit 627d0c6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ void publishWeatherdata(bool complete)
// neither does MQTT Dashboard...
// Therefore the JSON string is created manually.

for (int i = 0; i < weatherSensor.sensor.size(); i++)
for (size_t i = 0; i < weatherSensor.sensor.size(); i++)
{
// Reset string buffers
mqtt_payload = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ void publishWeatherdata(bool complete)
// neither does MQTT Dashboard...
// Therefore the JSON string is created manually.

for (int i = 0; i < weatherSensor.sensor.size(); i++)
for (size_t i = 0; i < weatherSensor.sensor.size(); i++)
{
// Reset string buffers
mqtt_payload = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -716,7 +716,7 @@ void publishWeatherdata(bool complete)
// neither does MQTT Dashboard...
// Therefore the JSON string is created manually.

for (int i = 0; i < weatherSensor.sensor.size(); i++)
for (size_t i = 0; i < weatherSensor.sensor.size(); i++)
{
// Reset string buffers
mqtt_payload = "";
Expand Down

0 comments on commit 627d0c6

Please sign in to comment.