Browse Source

Force get_device_size to return an int in OTA manager

master
Xose Pérez 5 years ago
parent
commit
7bf7aa6906
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      code/ota.py

+ 1
- 1
code/ota.py View File

@ -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


Loading…
Cancel
Save