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:
James Aguilar
2026-01-04 03:06:42 +00:00
committed by GitHub
parent 0d0e366cba
commit d19ded5908
-22
View File
@@ -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());