Skip to content

Commit

Permalink
Update platformio.yaml for build of TLXH inverters
Browse files Browse the repository at this point in the history
This adds support for building a firmware for ShineWifiX with TLXH support
  • Loading branch information
plieven authored Sep 16, 2024
1 parent 248d837 commit c7f8b84
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/platformio.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ jobs:
mv .pio/build/ShineWifiS/firmware.bin release/firmware-ShineWifiS.bin
mv .pio/build/nodemcu-32s/firmware.bin release/firmware-nodemcu-32s.bin
mv .pio/build/d1/firmware.bin release/firmware-d1.bin
- name: Prepare config for TLXH inverters
run: |
sed -i -e "s/GROWATT_MODBUS_VERSION 124/GROWATT_MODBUS_VERSION 3000/g" "SRC/ShineWiFi-ModBus/Config.h"
- name: Run PlatformIO for TLXH inverters
run: pio run -e ShineWifiX
- name: Adjust firmware filename for TLXH inverters
run: |
mv .pio/build/ShineWifiX/firmware.bin release/firmware-ShineWifiX-TLXH.bin
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
Expand Down

0 comments on commit c7f8b84

Please sign in to comment.