Skip to content

Commit

Permalink
need to be int
Browse files Browse the repository at this point in the history
  • Loading branch information
John Doe authored and igrr committed Jul 6, 2015
1 parent 44ac799 commit 86cf9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/espota.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def serve(remoteAddr, remotePort, filename):
sock.listen(1)

sock2 = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
remote_address = (remoteAddr, remotePort)
remote_address = (remoteAddr, int(remotePort))
content_size = os.path.getsize(filename)
print('upload size: %d' % content_size, file=sys.stderr)
message = '%d %d %d\n' % (0, serverPort, content_size)
Expand Down

0 comments on commit 86cf9b2

Please sign in to comment.