Permalink
Browse files

loop checking for downloads

  • Loading branch information...
1 parent 1263cc5 commit 52da7861903a6229b9b5138cd26cb534ea91c650 @andrewn committed Jun 8, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 printer.py
View
@@ -64,8 +64,7 @@ def checkForDownload():
print "content length was 0"
else:
print "got response: " + status
- time.sleep(5)
-
+
def sendToPrinter(f):
print "Printing."
bytes = f.read()
@@ -79,5 +78,6 @@ def sendToPrinter(f):
print printerId
print printerDevice
-#while(True):
-checkForDownload()
+while(True):
+ checkForDownload()
+ time.sleep(5)

0 comments on commit 52da786

Please sign in to comment.