mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-07-27 19:57:11 +00:00
usb/sagas: Drop debug prints.
We don't have these for BLE either, and it makes other debugging harder.
This commit is contained in:
@@ -461,8 +461,6 @@ function* handleUsbConnectPybricks(hotPlugDevice?: USBDevice): Generator {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.debug('Received USB message:', result.data);
|
|
||||||
|
|
||||||
switch (result.data.getInt8(0)) {
|
switch (result.data.getInt8(0)) {
|
||||||
case PybricksUsbInEndpointMessageType.Response:
|
case PybricksUsbInEndpointMessageType.Response:
|
||||||
yield* put(
|
yield* put(
|
||||||
@@ -509,8 +507,6 @@ function* handleUsbConnectPybricks(hotPlugDevice?: USBDevice): Generator {
|
|||||||
for (;;) {
|
for (;;) {
|
||||||
const action = yield* take(chan);
|
const action = yield* take(chan);
|
||||||
|
|
||||||
console.debug('Processing USB action:', action);
|
|
||||||
|
|
||||||
if (usbPybricksSubscribe.matches(action)) {
|
if (usbPybricksSubscribe.matches(action)) {
|
||||||
const message = new DataView(new ArrayBuffer(2));
|
const message = new DataView(new ArrayBuffer(2));
|
||||||
message.setUint8(0, PybricksUsbOutEndpointMessageType.Subscribe);
|
message.setUint8(0, PybricksUsbOutEndpointMessageType.Subscribe);
|
||||||
|
|||||||
Reference in New Issue
Block a user