Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Poll for new content every 10 seconds

  • Loading branch information...
commit 259fb6139f9f70f473ed55fd50fd13b51fc0b544 1 parent 52da786
@andrewn authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 printer.py
View
4 printer.py
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.