feat(core): 更新py-esptool (version: 4.8.1)
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
from loader import ESPLoader
|
||||
from util import FatalError, NotSupportedError
|
||||
from ..loader import ESPLoader
|
||||
from ..util import FatalError, NotSupportedError
|
||||
|
||||
|
||||
class ESP8266ROM(ESPLoader):
|
||||
@@ -169,12 +169,18 @@ class ESP8266ROM(ESPLoader):
|
||||
else:
|
||||
return (num_sectors - head_sectors) * sector_size
|
||||
|
||||
def get_flash_voltage(self):
|
||||
pass # not supported on ESP8266
|
||||
|
||||
def override_vddsdio(self, new_voltage):
|
||||
raise NotSupportedError(self, "Overriding VDDSDIO")
|
||||
|
||||
def check_spi_connection(self, spi_connection):
|
||||
raise NotSupportedError(self, "Setting --spi-connection")
|
||||
|
||||
def get_secure_boot_enabled(self):
|
||||
return False # ESP8266 doesn't have security features
|
||||
|
||||
|
||||
class ESP8266StubLoader(ESP8266ROM):
|
||||
"""Access class for ESP8266 stub loader, runs on top of ROM."""
|
||||
|
||||
Reference in New Issue
Block a user