Skip to content

Commit 86cf9b2

Browse files
John Doeigrr
John Doe
authored andcommitted
need to be int
1 parent 44ac799 commit 86cf9b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/espota.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def serve(remoteAddr, remotePort, filename):
2222
sock.listen(1)
2323

2424
sock2 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
25-
remote_address = (remoteAddr, remotePort)
25+
remote_address = (remoteAddr, int(remotePort))
2626
content_size = os.path.getsize(filename)
2727
print('upload size: %d' % content_size, file=sys.stderr)
2828
message = '%d %d %d\n' % (0, serverPort, content_size)

0 commit comments

Comments
 (0)