mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-14 18:46:17 +00:00
firmware/ev3: Don't request hardware version.
This feature doesn't seem to work when it is issued from a USB3 bus. See https://github.com/pybricks/support/issues/2515. Since we don't use the version, removing the command is harmless.
This commit is contained in:
@@ -1211,28 +1211,6 @@ function* handleFlashEV3(action: ReturnType<typeof firmwareFlashEV3>): Generator
|
||||
return [new DataView(reply.payload), undefined];
|
||||
}
|
||||
|
||||
const [version, versionError] = yield* sendCommand(0xf6); // get version
|
||||
|
||||
if (versionError) {
|
||||
yield* put(
|
||||
alertsShowAlert('alerts', 'unexpectedError', {
|
||||
error: ensureError(versionError),
|
||||
}),
|
||||
);
|
||||
yield* put(firmwareDidFailToFlashEV3());
|
||||
yield* cleanup();
|
||||
return;
|
||||
}
|
||||
|
||||
defined(version);
|
||||
|
||||
console.debug(
|
||||
`EV3 bootloader version: ${version.getUint32(
|
||||
0,
|
||||
true,
|
||||
)}, HW version: ${version.getUint32(4, true)}`,
|
||||
);
|
||||
|
||||
// FIXME: should be called much earlier.
|
||||
yield* put(didStart());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user