Skip to content

Commit

Permalink
Fix to probe metadata baudrate first (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
darkxst authored Jun 19, 2023
1 parent 303bab2 commit 0bfc548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions universal_silabs_flasher/flash.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ async def flash(
# Probe with the firmware's baudrate first
if (
metadata.baudrate is not None
and ctx.parent.get_parameter_source(app_type.name)
and ctx.parent.get_parameter_source(f"{app_type.value}_baudrate")
== click.core.ParameterSource.DEFAULT
):
_LOGGER.debug("Probing with %s baudrate first", app_type)
_LOGGER.debug("Probing with %s baudrate first", metadata.baudrate)
flasher._baudrates[app_type] = put_first(
flasher._baudrates[app_type], [metadata.baudrate]
)
Expand Down

0 comments on commit 0bfc548

Please sign in to comment.