Skip to content

Commit afc7009

Browse files
authored
Fix bf passthrough flashing for DIY RX (ExpressLRS#275)
* fix typo * fix esptool part of BF_Passthrough flashing for rx900 * fix bf init passthrough * Make use of env to set baud rate * fix upload_cmd for 2400 RX
1 parent f8d3294 commit afc7009

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/platformio.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -304,8 +304,8 @@ src_filter = ${env:DIY_900_RX_ESP8285_SX127x_via_UART.src_filter}
304304
upload_speed = 74880
305305
upload_protocol = custom
306306
upload_command =
307-
python python/runpython.py $PYTHONEXE python/BFinitPassthrough.py 74880
308-
python $PROJECT_PACKAGES_DIR/framework-arduinoespressif32/tools/esptool.py --no-stub -b 74880 -c esp8266 --before no_reset --after soft_reset write_flash 0x0000 $SOURCE
307+
python $PROJECT_DIR/python/BFinitPassthrough.py $UPLOAD_SPEED
308+
python $PROJECT_PACKAGES_DIR/framework-arduinoespressif8266/tools/esptool/esptool.py --no-stub -b $UPLOAD_SPEED -c esp8266 --before no_reset --after soft_reset write_flash 0x0000 $SOURCE
309309

310310
[env:DIY_2400_TX_ESP32_SX1280_Mini_via_UART]
311311
@@ -411,8 +411,8 @@ board_build.f_cpu = ${env:DIY_2400_RX_ESP8285_SX1280_via_UART.board_build.f_cpu}
411411
src_filter = ${env:DIY_2400_RX_ESP8285_SX1280_via_UART.src_filter}
412412
upload_protocol = custom
413413
upload_command =
414-
python python/runpython.py $PYTHONEXE python/BFinitPassthrough.py $UPLOAD_SPEED
415-
python $PROJECT_PACKAGES_DIR/framework-arduinoespressif32/tools/esptool.py --no-stub -b $UPLOAD_SPEED -c esp8266 --before no_reset --after soft_reset write_flash 0x0000 $SOURCE
414+
python $PROJECT_DIR/python/BFinitPassthrough.py $UPLOAD_SPEED
415+
python $PROJECT_PACKAGES_DIR/framework-arduinoespressif8266/tools/esptool/esptool.py --no-stub -b $UPLOAD_SPEED -c esp8266 --before no_reset --after soft_reset write_flash 0x0000 $SOURCE
416416

417417
[env:DIY_2400_RX_STM32_CCG_Nano_v0_5]
418418

src/python/build_env_setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# don't overwrite if custom command defined
1010
if stm and "$UPLOADER $UPLOADERFLAGS" in env.get('UPLOADCMD', '$UPLOADER $UPLOADERFLAGS'):
1111
target_name = env['PIOENV'].upper()
12-
print("STM ENv: '%s'" % target_name)
12+
print("STM ENV: '%s'" % target_name)
1313
if "_R9M_" in target_name:
1414
env.AddPostAction("buildprog", [opentx.gen_elrs])
1515
if "WIFI" in target_name:

0 commit comments

Comments
 (0)