allow disable light voltage range with -1
This commit is contained in:
parent
c5bce25afe
commit
d7b854da75
@ -740,7 +740,7 @@ void safeSetup()
|
|||||||
{ return (candidate > 0) && (candidate < (24)); });
|
{ return (candidate > 0) && (candidate < (24)); });
|
||||||
timedLightOnlyWhenDark.setDefaultValue(true);
|
timedLightOnlyWhenDark.setDefaultValue(true);
|
||||||
timedLightVoltageCutoff.setDefaultValue(3.8).setValidator([](double candidate)
|
timedLightVoltageCutoff.setDefaultValue(3.8).setValidator([](double candidate)
|
||||||
{ return (candidate > 3.3) && (candidate < (4.2)); });
|
{ return ((candidate > 3.3 || candidate == -1) && (candidate < (50))); });
|
||||||
#endif // TIMED_LIGHT_PIN
|
#endif // TIMED_LIGHT_PIN
|
||||||
|
|
||||||
Homie.setLoopFunction(homieLoop);
|
Homie.setLoopFunction(homieLoop);
|
||||||
|
Loading…
Reference in New Issue
Block a user