Skip to content

Commit 2cedb77

Browse files
authored
Merge pull request #352 from fdcavalcanti/feature/nuttx-use-proper-baudrate
feat: use baudrate from EspSerial in EspNuttx (RDT-1275)
2 parents 3c85c5f + d14cba2 commit 2cedb77

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]] = {
@@ -109,7 +108,7 @@ def flash(self) -> None:
109108
'--port',
110109
self.port,
111110
'--baud',
112-
str(self.FLASH_BAUDRATE),
111+
str(self.esptool_baud),
113112
'write_flash',
114113
*flash_files,
115114
*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)