mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 10:35:11 +00:00
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:
@@ -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
@@ -363,7 +363,7 @@ function* handleBleConnectPybricks(): Generator {
|
||||
);
|
||||
} else {
|
||||
yield* put(
|
||||
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, firmwareVersion),
|
||||
blePybricksServiceDidNotReceiveHubCapabilities(pnpId, firmwareRevision),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user