Skip to content

Commit 964c18f

Browse files
committed
ble/sagas: fix blePybricksServiceDidNotReceiveHubCapabilities firmware version
We were using the version from the @pybricks/firmware package but we really want the version from the connected device.
1 parent fa00c0a commit 964c18f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ble/sagas.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ async function runConnectUntil(saga: AsyncSaga, point: ConnectRunPoint): Promise
235235
}
236236

237237
await expect(saga.take()).resolves.toEqual(
238-
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, '3.2.0b4'),
238+
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, '3.2.0b2'),
239239
);
240240

241241
if (point === ConnectRunPoint.DidNotReceiveHubCapabilities) {

src/ble/sagas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ function* handleBleConnectPybricks(): Generator {
363363
);
364364
} else {
365365
yield* put(
366-
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, firmwareVersion),
366+
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, firmwareRevision),
367367
);
368368
}
369369

0 commit comments

Comments
 (0)