Skip to content

Commit 78599dd

Browse files
authored
Fix STM32 flashing options (ExpressLRS#2997)
* We missed updating the options version and configurator... twice! * Pin shiv as they f'd it up!
1 parent 08b37d3 commit 78599dd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ jobs:
167167
- name: Build flasher "binary" with shiv
168168
run: |
169169
cd src/python
170-
pip install shiv
170+
pip install shiv==1.0.6
171171
shiv -c flash -o ../../dist/firmware/flasher.pyz pyserial .
172172
173173
- name: Update firmware artifact

src/lib/OPTIONS/options.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const char *product_name = (const char *)(target_name+4);
3636

3737
__attribute__ ((used)) static firmware_options_t flashedOptions = {
3838
._magic_ = {0xBE, 0xEF, 0xBA, 0xBE, 0xCA, 0xFE, 0xF0, 0x0D},
39-
._version_ = 1,
39+
._version_ = 3,
4040
#if defined(Regulatory_Domain_ISM_2400)
4141
.domain = 0,
4242
#else

src/python/binary_configurator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ def patch_rx_params(mm, pos, args):
119119

120120
def patch_tx_params(mm, pos, args, options):
121121
pos = write32(mm, pos, args.tlm_report)
122-
pos = write32(mm, pos, args.fan_min_runtime)
123122
val = mm[pos]
124123
val &= ~1 # unused1 - ex uart_inverted
125124
if args.unlock_higher_power != None:
@@ -212,6 +211,7 @@ def patch_firmware(options, mm, pos, args):
212211
pos += 1
213212
pos = patch_uid(mm, pos, args)
214213
pos = patch_flash_discriminator(mm, pos, args)
214+
pos = write32(mm, pos, args.fan_min_runtime)
215215
if options.deviceType is DeviceType.TX:
216216
pos = patch_tx_params(mm, pos, args, options)
217217
elif options.deviceType is DeviceType.RX:

0 commit comments

Comments
 (0)