mirror of
https://github.com/wled/WLED.git
synced 2025-07-08 03:16:32 +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"];
|
JsonArray pins = top["pin"];
|
||||||
if (!pins.isNull()) {
|
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];
|
if (i < pins.size()) PIRsensorPin[i] = pins[i] | PIRsensorPin[i];
|
||||||
} else {
|
} else {
|
||||||
PIRsensorPin[0] = top["pin"] | oldPin[0];
|
PIRsensorPin[0] = top["pin"] | oldPin[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user