diff --git a/code/ota.py b/code/ota.py index 4d1687c3..6bc5888a 100755 --- a/code/ota.py +++ b/code/ota.py @@ -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