Skip to content

Commit

Permalink
Merge pull request #273 from horw/fix/flash_baud
Browse files Browse the repository at this point in the history
  • Loading branch information
hfudev authored Apr 2, 2024
2 parents 341a439 + 23ac322 commit cc303f2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pytest-embedded-idf/pytest_embedded_idf/serial.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import contextlib
import hashlib
import logging
import os
import tempfile
from typing import Optional, TextIO, Union

Expand Down Expand Up @@ -161,6 +162,8 @@ def flash(self, app: Optional[IdfApp] = None) -> None:
else:
_args.append(str(v))

if '--baud' not in _args:
_args.extend(['--baud', os.getenv('ESPBAUD', '1000000')])
_args.append('write_flash')

if self.erase_nvs:
Expand Down

0 comments on commit cc303f2

Please sign in to comment.