We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ac0ee39 commit f751d1fCopy full SHA for f751d1f
src/usb/sagas.ts
@@ -156,16 +156,6 @@ function* handleUsbConnectPybricks(hotPlugDevice?: USBDevice): Generator {
156
157
exitStack.push(() => usbDevice.close().catch(console.debug));
158
159
- // Always reset the USB device to ensure it is in a known state.
160
- const [, resetErr] = yield* call(() => maybe(usbDevice.reset()));
161
- if (resetErr) {
162
- // TODO: show error message to user here
163
- console.error('Failed to reset USB device:', resetErr);
164
- yield* put(usbDidFailToConnectPybricks());
165
- yield* cleanup();
166
- return;
167
- }
168
-
169
const [, selectErr] = yield* call(() => maybe(usbDevice.selectConfiguration(1)));
170
if (selectErr) {
171
// TODO: show error message to user here
0 commit comments