fix(test): Fix test server to actually save the code
This commit is contained in:
parent
cf7003aa9a
commit
b333e1577c
1 changed files with 4 additions and 5 deletions
|
@ -11,13 +11,12 @@ s.listen(1)
|
|||
while True:
|
||||
conn, addr = s.accept()
|
||||
print(addr)
|
||||
printer = open('test.png', 'wb')
|
||||
while True:
|
||||
data = conn.recv(9100)
|
||||
data = conn.recv(91000)
|
||||
print('data received')
|
||||
print('Sending to printer...')
|
||||
|
||||
printer=open('test.png','wb')
|
||||
printer.write(data)
|
||||
printer.close()
|
||||
if not data:
|
||||
break
|
||||
break
|
||||
printer.close()
|
Loading…
Add table
Reference in a new issue