changed Input Invert parameters
This commit is contained in:
parent
7f9a7f0b0d
commit
882f293723
@ -343,16 +343,24 @@ while True:
|
||||
if cmd == "I":
|
||||
firstcom = 1
|
||||
if value == 1:
|
||||
if c["din.{}-invert".format(io)] == 0:
|
||||
c["din.{}".format(io)] = 1
|
||||
c["din.{}-invert".format(io)] = 0
|
||||
if(Debug):print("din{}:{}".format(io,1))
|
||||
else:
|
||||
c["din.{}".format(io)] = 0
|
||||
if(Debug):print("din{}:{}".format(io,0))
|
||||
|
||||
|
||||
if value == 0:
|
||||
if c["din.{}-invert".format(io)] == 0:
|
||||
c["din.{}".format(io)] = 0
|
||||
c["din.{}-invert".format(io)] = 1
|
||||
if(Debug):print("din{}:{}".format(io,0))
|
||||
else:
|
||||
c["din.{}".format(io)] = 1
|
||||
if(Debug):print("din{}:{}".format(io,1))
|
||||
else:pass
|
||||
|
||||
|
||||
elif cmd == "A":
|
||||
firstcom = 1
|
||||
c["ain.{}".format(io)] = value
|
||||
|
Loading…
Reference in New Issue
Block a user