mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
fix node-red nrgpio.py
This commit is contained in:
parent
3ad9a513a6
commit
d0f2ee4a39
@ -53,7 +53,7 @@ if len(sys.argv) > 2:
|
||||
|
||||
while True:
|
||||
try:
|
||||
data = six.input()
|
||||
data = six.moves.input()
|
||||
if 'close' in data:
|
||||
sys.exit(0)
|
||||
p.ChangeDutyCycle(float(data))
|
||||
@ -71,7 +71,7 @@ if len(sys.argv) > 2:
|
||||
|
||||
while True:
|
||||
try:
|
||||
data = six.input()
|
||||
data = six.moves.input()
|
||||
if 'close' in data:
|
||||
sys.exit(0)
|
||||
elif float(data) == 0:
|
||||
@ -93,7 +93,7 @@ if len(sys.argv) > 2:
|
||||
|
||||
while True:
|
||||
try:
|
||||
data = six.input()
|
||||
data = six.moves.input()
|
||||
if 'close' in data:
|
||||
sys.exit(0)
|
||||
data = int(data)
|
||||
@ -128,7 +128,7 @@ if len(sys.argv) > 2:
|
||||
|
||||
while True:
|
||||
try:
|
||||
data = six.input()
|
||||
data = six.moves.input()
|
||||
if 'close' in data:
|
||||
sys.exit(0)
|
||||
except (EOFError, SystemExit): # hopefully always caused by us sigint'ing the program
|
||||
@ -142,7 +142,7 @@ if len(sys.argv) > 2:
|
||||
|
||||
while True:
|
||||
try:
|
||||
data = six.input()
|
||||
data = six.moves.input()
|
||||
if 'close' in data:
|
||||
sys.exit(0)
|
||||
data = int(data)
|
||||
@ -172,7 +172,7 @@ if len(sys.argv) > 2:
|
||||
|
||||
while True:
|
||||
try:
|
||||
data = six.input()
|
||||
data = six.moves.input()
|
||||
if 'close' in data:
|
||||
sys.exit(0)
|
||||
c = data.split(",")
|
||||
|
Loading…
Reference in New Issue
Block a user