replace loop by an sleep

This commit is contained in:
chrys 2016-10-08 02:37:09 +02:00
parent de717bca89
commit 0ccf22e378

View File

@ -9,10 +9,10 @@ print('display size' + str(brl.displaySize))
print('driver name'+str(brl.driverName))
t = time.time()
while(time.time() - t <= 5):
try:
#while(time.time() - t <= 5):
try:
brl.writeText( 'this is a 5 second test')
except Exception as e:
except Exception as e:
print(e)
brl.leaveTtyMode()
time.sleep(5)