diff --git a/src/ble/sagas.ts b/src/ble/sagas.ts index a5cc6d1e..57fee43f 100644 --- a/src/ble/sagas.ts +++ b/src/ble/sagas.ts @@ -260,9 +260,11 @@ function* handleBleConnectPybricks(): Generator { try { pnpIdChar = yield* call([deviceInfoService, 'getCharacteristic'], pnpIdUUID); } catch (err) { - console.warn( - 'PnP ID characteristic requires Pybricks firmware v3.1.0a1 or later', - ); + if (process.env.NODE_ENV !== 'test') { + console.warn( + 'PnP ID characteristic requires Pybricks firmware v3.1.0a1 or later', + ); + } } if (pnpIdChar) {