Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
micropython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
micropython
Commits
cc7e48fd
Commit
cc7e48fd
authored
Jan 06, 2017
by
Damien George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
esp8266/modules/flashbdev: Remove now-unused function set_bl_flash_size.
parent
4a72294d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
19 deletions
+0
-19
esp8266/modules/flashbdev.py
esp8266/modules/flashbdev.py
+0
-19
No files found.
esp8266/modules/flashbdev.py
View file @
cc7e48fd
...
...
@@ -27,25 +27,6 @@ class FlashBdev:
if
op
==
5
:
# BP_IOCTL_SEC_SIZE
return
self
.
SEC_SIZE
def
set_bl_flash_size
(
real_size
):
if
real_size
==
256
*
1024
:
code
=
1
elif
real_size
==
512
*
1024
:
code
=
0
elif
real_size
==
1024
*
1024
:
code
=
2
elif
real_size
==
2048
*
1024
:
code
=
3
elif
real_size
==
4096
*
1024
:
code
=
4
else
:
code
=
2
buf
=
bytearray
(
4096
)
esp
.
flash_read
(
0
,
buf
)
buf
[
3
]
=
(
buf
[
3
]
&
0xf
)
|
(
code
<<
4
)
esp
.
flash_erase
(
0
)
esp
.
flash_write
(
0
,
buf
)
size
=
esp
.
flash_size
()
if
size
<
1024
*
1024
:
bdev
=
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment