From f5e47b2b74b4d457f19f18b3c6200eb08f4a0deb Mon Sep 17 00:00:00 2001 From: Blaz Kristan Date: Tue, 6 Feb 2024 10:17:53 +0100 Subject: [PATCH] Fix compiler warning --- usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h b/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h index 48d899bc4..e0263911e 100644 --- a/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h +++ b/usermods/PIR_sensor_switch/usermod_PIR_sensor_switch.h @@ -533,7 +533,7 @@ bool PIRsensorSwitch::readFromConfig(JsonObject &root) JsonArray pins = top["pin"]; if (!pins.isNull()) { - for (int i = 0; i < PIR_SENSOR_MAX_SENSORS; i++) + for (size_t i = 0; i < PIR_SENSOR_MAX_SENSORS; i++) if (i < pins.size()) PIRsensorPin[i] = pins[i] | PIRsensorPin[i]; } else { PIRsensorPin[0] = top["pin"] | oldPin[0];