From 0ccf22e378b67037299114ca81d5fca4e6bf8942 Mon Sep 17 00:00:00 2001 From: chrys Date: Sat, 8 Oct 2016 02:37:09 +0200 Subject: [PATCH] replace loop by an sleep --- play zone/writeBrl.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/play zone/writeBrl.py b/play zone/writeBrl.py index bf3d0372..855cbef1 100755 --- a/play zone/writeBrl.py +++ b/play zone/writeBrl.py @@ -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: - brl.writeText( 'this is a 5 second test') - except Exception as e: - print(e) +#while(time.time() - t <= 5): +try: + brl.writeText( 'this is a 5 second test') +except Exception as e: + print(e) brl.leaveTtyMode() - +time.sleep(5)