diff --git a/code/ota.py b/code/ota.py index 90ff0755..16b86f82 100755 --- a/code/ota.py +++ b/code/ota.py @@ -114,7 +114,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(device.get('mem_size', 0)) / 1024 return 0 def get_empty_board():