Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tube0013 committed Aug 26, 2024
1 parent 443a895 commit 83a6345
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 8 deletions.
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.3.2
- Script fixes

## 0.3.3.1
- move custom url to advanced drop down

Expand Down
3 changes: 1 addition & 2 deletions tzb-cc2652-flasher/config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 0.3.3.1
version: 0.3.3.2
slug: tzb-cc2652-flasher
name: TubesZB TI CC2652 FW Flasher
description: TubesZB TI CC2652 firmware flasher add-on
Expand Down Expand Up @@ -31,7 +31,6 @@ schema:
sonoff: bool?
cc2652p2_fw: bool?
cc2652p7_fw: bool?
custom_fw_url: bool?
firmware_url: str?
stage: experimental
startup: once
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ if bashio::config.true 'cc2652p2_fw'; then
exit 0
fi

firmware="firmware.hex"

if bashio::config.true 'cc2652p7_fw'; then
curl --silent -L -o "/root/firmware.zip" ${cc2652p7_release_url}
if [ ! -f "/root/firmware.zip" ]; then
Expand All @@ -72,7 +74,9 @@ if bashio::config.true 'cc2652p7_fw'; then
exit 0
fi

if bashio::config.true 'custom_fw_url:'; then
firmware="firmware.hex"

if bashio::config.has_value 'firmware_url'; then
curl --silent -L -o "/root/firmware.zip" "$(bashio::config 'firmware_url')"
if [ ! -f "/root/firmware.zip" ]; then
bashio::log.warning "Firmware Download failed"
Expand Down Expand Up @@ -105,4 +109,4 @@ if bashio::config.true 'sonoff'; then
else
bashio::log.info "Starting cc2652 flasher with ${device}"
cc1352-flasher.py -p ${device} -evw "/root/${firmware}"
fi
fi
5 changes: 1 addition & 4 deletions tzb-cc2652-flasher/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ configuration:
name: Hardware flow control
description: Enable hardware flow control for serial port.
firmware_url:
name: Firmware URL
name: Custom Firmware URL
description: >-
URL for firmware zip image you wish to flash
trigger_esphome_bsl:
Expand All @@ -29,6 +29,3 @@ configuration:
cc2652p7_fw:
name: Select for Current Recommended CC2652 P7 Firmware
description: Current Z-Stack Release for CC2652 P7 Devices - Use with TubesZB CC2652 P7 PoE
custom_fw_url:
name: Select to Custom_Firmware_URL
description: Select if entering a custom url for zipped firmware

0 comments on commit 83a6345

Please sign in to comment.