fix(test): Fix test server to actually save the code

This commit is contained in:
Andreas Mieke 2024-04-17 22:23:16 -04:00
parent cf7003aa9a
commit b333e1577c
Signed by: zenermerps
SSH key fingerprint: SHA256:Ne+hwc5QIgYlqCuLZ0LV3301Wo/p8UoGOrGC+T6S0t8

View file

@ -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
printer.close()