mirror of
https://github.com/anklimov/lighthub
synced 2025-12-07 04:09:49 +03:00
Fixes: negative pin# hung, compilation error, double ON ->white color, analog mapping on the edges of interval, macaddr mask, potential unrelability on LAN re-interability
This commit is contained in:
@@ -852,8 +852,15 @@ void Input::analogPoll(short cause) {
|
||||
|
||||
if (aJson.getArraySize(inputMap)==5) Noize = aJson.getArrayItem(inputMap, 4)->valueint;
|
||||
|
||||
if (mappedInputVal>max) mappedInputVal = max;
|
||||
if (mappedInputVal<min) mappedInputVal = min;
|
||||
if (mappedInputVal>max)
|
||||
{
|
||||
mappedInputVal = max;
|
||||
inputVal = 1023;
|
||||
}
|
||||
if (mappedInputVal<min) {
|
||||
mappedInputVal = min;
|
||||
inputVal = 0;
|
||||
}
|
||||
|
||||
if (aJson.getArraySize(inputMap)==2)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user