mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-15 02:54:07 +00:00
ble/sagas: don't spam console in tests
This commit is contained in:
+5
-3
@@ -260,9 +260,11 @@ function* handleBleConnectPybricks(): Generator {
|
|||||||
try {
|
try {
|
||||||
pnpIdChar = yield* call([deviceInfoService, 'getCharacteristic'], pnpIdUUID);
|
pnpIdChar = yield* call([deviceInfoService, 'getCharacteristic'], pnpIdUUID);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.warn(
|
if (process.env.NODE_ENV !== 'test') {
|
||||||
'PnP ID characteristic requires Pybricks firmware v3.1.0a1 or later',
|
console.warn(
|
||||||
);
|
'PnP ID characteristic requires Pybricks firmware v3.1.0a1 or later',
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pnpIdChar) {
|
if (pnpIdChar) {
|
||||||
|
|||||||
Reference in New Issue
Block a user