Skip to content

Commit

Permalink
silabs-flasher: Bump universal-silabs-flasher to 0.0.19 (home-assista…
Browse files Browse the repository at this point in the history
…nt#3544)

* Bump universal-silabs-flasher

* Use new GPIO reset flag format
  • Loading branch information
puddly authored Apr 4, 2024
1 parent 388d4c9 commit 0d3157f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions silabs_flasher/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Changelog

## 0.2.2
- Update universal-silabs-flasher to v0.0.19

## 0.2.1
- Support flashing the Connect ZBT-1.

Expand Down
2 changes: 1 addition & 1 deletion silabs_flasher/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ build_from:
armv7: ghcr.io/home-assistant/armv7-base-python:3.11-alpine3.17
i386: ghcr.io/home-assistant/i386-base-python:3.11-alpine3.17
args:
UNIVERSAL_SILABS_FLASHER: 0.0.13
UNIVERSAL_SILABS_FLASHER: 0.0.19
2 changes: 1 addition & 1 deletion silabs_flasher/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 0.2.1
version: 0.2.2
slug: silabs_flasher
name: Silicon Labs Flasher
description: Silicon Labs firmware flasher add-on
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ bootloader_baudrate=$(bashio::config 'bootloader_baudrate')

if [ -d /sys/devices/platform/soc/fe201800.serial/tty/ttyAMA1 ] && [ "${device}" == "/dev/ttyAMA1" ]; then
bashio::log.info "Detected Home Assistant Yellow"
gpio_reset_flag="--yellow-gpio-reset"
gpio_reset_flag="--bootloader-reset yellow"
else
gpio_reset_flag=""
fi
Expand Down Expand Up @@ -86,8 +86,11 @@ if bashio::config.true 'verbose'; then
fi

bashio::log.info "Starting universal-silabs-flasher with ${device} (bootloader baudrate ${bootloader_baudrate})"
universal-silabs-flasher ${verbose} --device ${device} \
--bootloader-baudrate "${bootloader_baudrate}" \
flash ${gpio_reset_flag} --force --firmware "/root/${firmware}"
universal-silabs-flasher \
${verbose} \
--device ${device} \
--bootloader-baudrate "${bootloader_baudrate}" \
${gpio_reset_flag} \
flash --force --firmware "/root/${firmware}"


0 comments on commit 0d3157f

Please sign in to comment.