Skip to content

Commit

Permalink
Force get_device_size to return an int in OTA manager
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Dec 8, 2019
1 parent c271ba6 commit 7bf7aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ota.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def get_boards():

def get_device_size(device):
if device.get('mem_size', 0) == device.get('sdk_size', 0):
return int(device.get('mem_size', 0)) / 1024
return int(int(device.get('mem_size', 0)) / 1024)
return 0


Expand Down

0 comments on commit 7bf7aa6

Please sign in to comment.