Skip to content

Commit d14cba2

Browse files
committed
feat: use baudrate from EspSerial in EspNuttx
Signed-off-by: Filipe Cavalcanti <filipe.cavalcanti@espressif.com>
1 parent 057781b commit d14cba2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pytest-embedded-nuttx/pytest_embedded_nuttx/serial.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ class NuttxSerial(EspSerial):
1616
# Default offset for the primary MCUBoot slot across
1717
# all Espressif devices on NuttX
1818
MCUBOOT_PRIMARY_SLOT_OFFSET = 0x10000
19-
FLASH_BAUDRATE = 921600
2019
SERIAL_BAUDRATE = 115200
2120

2221
binary_offsets: ClassVar[Dict[str, int]] = {
@@ -103,7 +102,7 @@ def flash(self) -> None:
103102
'--port',
104103
self.port,
105104
'--baud',
106-
str(self.FLASH_BAUDRATE),
105+
str(self.esptool_baud),
107106
'write_flash',
108107
*flash_files,
109108
*flash_settings,

pytest-embedded/pytest_embedded/dut_factory.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ def _fixture_classes_and_options_fn(
243243
kwargs[fixture].update({
244244
'app': None,
245245
'baud': int(baud or NuttxSerial.SERIAL_BAUDRATE),
246-
'esptool_baud': int(os.getenv('ESPBAUD') or esptool_baud or NuttxSerial.FLASH_BAUDRATE),
247246
})
248247
else:
249248
from pytest_embedded_serial_esp import EspSerial

0 commit comments

Comments
 (0)