replace loop by an sleep
This commit is contained in:
parent
de717bca89
commit
0ccf22e378
@ -9,10 +9,10 @@ print('display size' + str(brl.displaySize))
|
|||||||
print('driver name'+str(brl.driverName))
|
print('driver name'+str(brl.driverName))
|
||||||
|
|
||||||
t = time.time()
|
t = time.time()
|
||||||
while(time.time() - t <= 5):
|
#while(time.time() - t <= 5):
|
||||||
try:
|
try:
|
||||||
brl.writeText( 'this is a 5 second test')
|
brl.writeText( 'this is a 5 second test')
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
brl.leaveTtyMode()
|
brl.leaveTtyMode()
|
||||||
|
time.sleep(5)
|
||||||
|
Loading…
Reference in New Issue
Block a user