Skip to content

Fix wifi flashing via flasher.pyz#221

Open
jurgelenas wants to merge 1 commit into
masterfrom
fix-wifi-upload
Open

Fix wifi flashing via flasher.pyz#221
jurgelenas wants to merge 1 commit into
masterfrom
fix-wifi-upload

Conversation

@jurgelenas
Copy link
Copy Markdown
Member

Restore call/signature alignment between binary_configurator and upload_via_esp8266_backpack, broken by the STM32 removal in 20d083c (#177):

  • binary_configurator.upload_wifi: drop the orphaned False (was isstm) so the 3-param do_upload signature matches.
  • upload_via_esp8266_backpack.do_upload: the [isstm] indexer was removed but the ['update', 'upload'] list literal was left in the URL format string, producing http://elrs_txbp/['update', 'upload']. Replace with /update.

Also tighten the bare except: in upload_wifi so failures surface as stderr instead of being silently masked.

Restore call/signature alignment between binary_configurator and
upload_via_esp8266_backpack, broken by the STM32 removal in
20d083c (#177):

- binary_configurator.upload_wifi: drop the orphaned `False` (was
  isstm) so the 3-param do_upload signature matches.
- upload_via_esp8266_backpack.do_upload: the `[isstm]` indexer was
  removed but the `['update', 'upload']` list literal was left in the
  URL format string, producing
  `http://elrs_txbp/['update', 'upload']`. Replace with `/update`.

Also tighten the bare `except:` in upload_wifi so failures surface as
stderr instead of being silently masked - this is what hid the
TypeError across releases 1.5.2 - 1.5.5.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants