This website works better with JavaScript.
Home
Explore
Help
Sign In
mh
/
mhsw-espurna
Watch
1
Star
0
Fork
0
Code
Releases
0
Activity
Browse Source
Force get_device_size to return an int in OTA manager
master
Xose Pérez
5 years ago
parent
c271ba666e
commit
7bf7aa6906
1 changed files
with
1 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+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
Write
Preview
Loading…
Cancel
Save