|
|
|
@ -37,7 +37,6 @@ def print_display(s):
|
|
|
|
|
global display_fifo
|
|
|
|
|
if not display_fifo:
|
|
|
|
|
try:
|
|
|
|
|
#display_fifo = open('/tmp/display', 'w')
|
|
|
|
|
fd = os.open( "/tmp/display", os.O_WRONLY)
|
|
|
|
|
display_fifo = os.fdopen(fd,"w")
|
|
|
|
|
except OSError:
|
|
|
|
@ -48,8 +47,13 @@ def print_display(s):
|
|
|
|
|
display_fifo = None
|
|
|
|
|
pass
|
|
|
|
|
return
|
|
|
|
|
display_fifo.write(s)
|
|
|
|
|
display_fifo.flush()
|
|
|
|
|
try:
|
|
|
|
|
display_fifo.write(s)
|
|
|
|
|
display_fifo.flush()
|
|
|
|
|
except IOError:
|
|
|
|
|
display_fifo = None
|
|
|
|
|
pass
|
|
|
|
|
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def clear():
|
|
|
|
|