Skip to content

Commit 20d40f0

Browse files
committed
fix OTA
Fixes: espressif#556
1 parent 1b3e8fa commit 20d40f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎tools/espota.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,14 @@ def serve(remoteAddr, localAddr, remotePort, localPort, password, filename, comm
172172
sys.stderr.flush()
173173
offset=0
174174
whileTrue:
175-
chunk=f.read(1460)
175+
chunk=f.read(1024)
176176
ifnotchunk: break
177177
offset+=len(chunk)
178178
update_progress(offset/float(content_size))
179179
connection.settimeout(10)
180180
try:
181181
connection.sendall(chunk)
182-
res=connection.recv(5)
182+
res=connection.recv(10)
183183
except:
184184
sys.stderr.write('\n')
185185
logging.error('Error Uploading')

0 commit comments

Comments
(0)