Skip to content

Commit

Permalink
Fix sonof flash
Browse files Browse the repository at this point in the history
  • Loading branch information
tube0013 committed Sep 26, 2024
1 parent 15f6741 commit 5a64f2e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tzb-cc2652-flasher/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Changelog

## 0.3.4.2
- Fix sonoff firmware dl and typo
## 0.3.4.0
- dependency updates

Expand Down
17 changes: 17 additions & 0 deletions tzb-cc2652-flasher/rootfs/etc/s6-overlay/scripts/cc2652-flasher-up
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,23 @@ if bashio::config.true 'cc2652p2_fw'; then

firmware="firmware.hex"

if bashio::config.true 'sonoff'; then
curl --silent -L -o "/root/firmware.zip" ${cc2652p2_release_url}
bashio::log.info "Downloading " ${cc2652p2_release_url}
if [ ! -f "/root/firmware.zip" ]; then
bashio::log.warning "Downloading firmware failed"
exit 0
fi

unzip -p "/root/firmware.zip" > "/root/firmware.hex"
if [ ! -f "/root/firmware.hex" ]; then
bashio::log.warning "Unzipping firmware failed"
exit 0
fi

firmware="firmware.hex"


elif bashio::config.true 'cc2652p7_fw'; then
curl --silent -L -o "/root/firmware.zip" ${cc2652p7_release_url}
bashio::log.info "Downloading " ${cc2652p7_release_url}
Expand Down
2 changes: 1 addition & 1 deletion tzb-cc2652-flasher/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ configuration:
name: Flash USB Device
description: Flash USB device instead of Network Device (Requires you to trigger bootloader mode by holding BSL button while plugging in to USB)
sonoff:
name: Flashing a Sonoff Dongle-P7?
name: Flashing a Sonoff Dongle-P?
description: Select to enable the bsl trigger for the Sonoff Dongle-P
cc2652p2_fw:
name: Select for Current Recommended CC2652 P2 Firmware
Expand Down

0 comments on commit 5a64f2e

Please sign in to comment.