Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

loop checking for downloads

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