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.
This commit is contained in:
David Lechner
2022-10-21 16:26:43 -05:00
parent fa00c0aea6
commit 964c18f12e
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -235,7 +235,7 @@ async function runConnectUntil(saga: AsyncSaga, point: ConnectRunPoint): Promise
}
await expect(saga.take()).resolves.toEqual(
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, '3.2.0b4'),
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, '3.2.0b2'),
);
if (point === ConnectRunPoint.DidNotReceiveHubCapabilities) {
+1 -1
View File
@@ -363,7 +363,7 @@ function* handleBleConnectPybricks(): Generator {
);
} else {
yield* put(
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, firmwareVersion),
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, firmwareRevision),
);
}