Skip to content

Commit

Permalink
Merge pull request bitcraze#502 from jonasdn/jonasdn/510
Browse files Browse the repository at this point in the history
Make it clear that fw upgrade not possible using USB
  • Loading branch information
ataffanel authored Apr 13, 2021
2 parents 62d4303 + 3f491d4 commit 2d3227d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
1 change: 1 addition & 0 deletions docs/userguides/userguide_client/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ client.
### Firmware upgrade

For updating the Crazyflie firmware you can keep being connected to the crazyflie. This will open up a seperate dialog that will guide you through the process.
Please note that you need to use a Crazyradio dongle to connect to the Crazyflie when doing firmware upgrades. Upgrading using USB is not possible.

![CFclient bootloading](/docs/images/firmware-upgrade.png)

Expand Down
12 changes: 9 additions & 3 deletions src/cfclient/ui/dialogs/bootloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,17 @@ def setUiState(self, state):
elif (state == self.UIState.FW_CONNECTED):
self._cold_boot_error_message = None
self.resetButton.setEnabled(False)
self.programButton.setEnabled(True)
self.setStatusLabel("Connected in firmware mode")
self.coldBootButton.setEnabled(False)
self.setSourceSelectionUiEnabled(True)
self._helper.connectivity_manager.set_enable(True)

if self._helper.cf.link_uri.startswith("usb://"):
self.programButton.setEnabled(False)
self.setStatusLabel("Connected using USB")
self.setSourceSelectionUiEnabled(False)
else:
self.programButton.setEnabled(True)
self.setStatusLabel("Connected in firmware mode")
self.setSourceSelectionUiEnabled(True)
elif (state == self.UIState.FW_SCANNING):
self._cold_boot_error_message = None
self.resetButton.setEnabled(False)
Expand Down

0 comments on commit 2d3227d

Please sign in to comment.