Skip to content

Commit

Permalink
Explicitly log obtained data
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidVentura committed Jul 11, 2019
1 parent fdf76d9 commit 8a3d443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion firmware/common.py
Expand Up @@ -96,7 +96,7 @@ def OTA(topic, msg):

data = msg.decode('ascii').split("|")
log(data)
log("Target IP: %s, Target Port: %s, Local filename: %s, hash: %s" % tuple(data))
log("Target IP: %s, Target Port: %s, Local filename: %s, hash: %s" % (data[0], data[1], data[2], data[3]))
success = receive_ota(data[0], int(data[1]), data[3])
# ip, port, hash
if not success:
Expand Down

0 comments on commit 8a3d443

Please sign in to comment.