Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
4a27ad04
Commit
4a27ad04
authored
Aug 04, 2016
by
Paul Sokolovsky
Browse files
esp8266/scripts/port_diag.py: Include esp.check_fw() call.
parent
e33d2383
Changes
1
Hide whitespace changes
Inline
Side-by-side
esp8266/scripts/port_diag.py
View file @
4a27ad04
...
...
@@ -17,6 +17,8 @@ def main():
FREQ_MAP
=
{
0
:
"40MHZ"
,
1
:
"26MHZ"
,
2
:
"20MHz"
,
0xf
:
"80MHz"
}
print
(
"Byte @2: %02x"
%
ROM
[
2
])
print
(
"Byte @3: %02x (Flash size: %s Flash freq: %s)"
%
(
ROM
[
3
],
SZ_MAP
.
get
(
ROM
[
3
]
>>
4
,
"?"
),
FREQ_MAP
.
get
(
ROM
[
3
]
&
0xf
)))
print
(
"Firmware checksum:"
)
print
(
esp
.
check_fw
())
print
(
"
\n
Networking:"
)
print
(
"STA ifconfig:"
,
network
.
WLAN
(
network
.
STA_IF
).
ifconfig
())
...
...
Write
Preview
Supports
Markdown
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