change to read(size=10)
This commit is contained in:
parent
df8a8025ba
commit
d91f985c7a
@ -59,7 +59,7 @@ DMXBRK = 8.0 # 8µs (min) to 1s (max)
|
||||
DMXSLP = 5000.0 #250.0 # 0µs (min) to 1s (max)
|
||||
|
||||
# Buffer for RDM
|
||||
DMXRDM = 0
|
||||
DMXRDM = "<initial>"
|
||||
DMXRDMFLAG = False # 1 for radlines() is active to buffer rdm packages
|
||||
|
||||
|
||||
@ -137,7 +137,7 @@ def sendDMX(data):
|
||||
|
||||
time.sleep(2)
|
||||
#-----------------------------------------------------------------------DMXSER.timeout(DMXSLP / 1000.0) # between 0 - 1 sec
|
||||
DMXRDM = DMXSER.readline()
|
||||
DMXRDM = DMXSER.read(size=10)
|
||||
print("input", DMXRDM)
|
||||
DMXRDMFLAG = True
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user