Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Align dfu zigbee command with pc-ble-driver>=0.15.0 #340

Conversation

jangalda-nsc
Copy link
Collaborator

The API of call_cmd method changed in pc-ble-driver-py 0.15.0. Previously, the CalledProcessError was raised when nrfjprog command failed. Since version 0.15.0, it is replaced by RuntimeError.
Because RuntimeError has no returncode attribute, there is no good way to check the reason why command failed (parsing command output is not recommended, cause it can be changed).
When requirements of nrfutil are updated, the old code can be removed.

tomchy
tomchy previously approved these changes Jan 8, 2021
nordicsemi/zigbee/ota_flasher.py Outdated Show resolved Hide resolved
nordicsemi/zigbee/ota_flasher.py Outdated Show resolved Hide resolved
The API of call_cmd method changed in pc-ble-driver-py 0.15.0. Previously, the CalledProcessError was raised when nrfjprog command failed. Since version 0.15.0, it is replaced by RuntimeError.
Because RuntimeError has no returncode attribute, there is no good way to check the reason why command failed (parsing command output is not recommended, cause it can be changed).
When requirements of nrfutil are updated, the old code can be removed.
@jangalda-nsc jangalda-nsc force-pushed the fix/align-zigbee-dfu-command-with-pc-ble-driver-0.15.0-api-changes branch from 5b1139d to b437d98 Compare January 12, 2021 08:08
@jangalda-nsc
Copy link
Collaborator Author

just a friendly reminder

@bihanssen bihanssen merged commit af139f1 into master Jan 13, 2021
@bihanssen bihanssen deleted the fix/align-zigbee-dfu-command-with-pc-ble-driver-0.15.0-api-changes branch January 13, 2021 18:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants