From 4a27ad040ed2db463e734e4ec84aecdd2787c219 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 4 Aug 2016 00:43:58 +0300 Subject: [PATCH] esp8266/scripts/port_diag.py: Include esp.check_fw() call. --- esp8266/scripts/port_diag.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esp8266/scripts/port_diag.py b/esp8266/scripts/port_diag.py index aa696b1abb..f2abd8066d 100644 --- a/esp8266/scripts/port_diag.py +++ b/esp8266/scripts/port_diag.py @@ -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("\nNetworking:") print("STA ifconfig:", network.WLAN(network.STA_IF).ifconfig())