diff --git a/Changelog.md b/Changelog.md index 4536e5870..093237750 100644 --- a/Changelog.md +++ b/Changelog.md @@ -7,6 +7,17 @@ This project does _not_ adhere to [Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it every new version is a new major version. +## 178.0.0 - 2024-06-11 + +### Changed + +- `isDeviceInDFUBootloader` now also expect nordic DFU Trait to be true + +### Fixed + +- Wait for device `when='dfuBootLoaderMode'` will wait until nordic DFU Trait + is also present + ## 177.0.0 - 2024-05-28 ### Added diff --git a/package.json b/package.json index d3232e19f..90d1a6c80 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@nordicsemiconductor/pc-nrfconnect-shared", - "version": "177.0.0", + "version": "178.0.0", "description": "Shared commodities for developing pc-nrfconnect-* packages", "repository": { "type": "git", diff --git a/src/Device/sdfuOperations.ts b/src/Device/sdfuOperations.ts index 169c7027a..629eb72e1 100644 --- a/src/Device/sdfuOperations.ts +++ b/src/Device/sdfuOperations.ts @@ -47,7 +47,8 @@ export const isDeviceInDFUBootloader = (device: Device) => { const { descriptor: d } = device.usb.device; return ( d.idVendor === NORDIC_VENDOR_ID && - d.idProduct === NORDIC_DFU_PRODUCT_ID + d.idProduct === NORDIC_DFU_PRODUCT_ID && + !!device.traits.nordicDfu ); }