mirror of
https://github.com/wled/WLED.git
synced 2025-04-24 23:07:19 +00:00
Fix compiler warning
This commit is contained in:
parent
678a823e8b
commit
f5e47b2b74
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user