Permalink
Browse files

Poll for new content every 10 seconds

  • Loading branch information...
1 parent 52da786 commit 259fb6139f9f70f473ed55fd50fd13b51fc0b544 @andrewn committed Jun 12, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 printer.py
View
@@ -13,6 +13,8 @@
printerType = 'A2-raw'
+pollingTimeoutSecs = 10
+
printerDevice = DEBUG_SERIAL if options.debug else RASPI_SERIAL
printerId = None
printer = None
@@ -80,4 +82,4 @@ def sendToPrinter(f):
while(True):
checkForDownload()
- time.sleep(5)
+ time.sleep(pollingTimeoutSecs)

0 comments on commit 259fb61

Please sign in to comment.