mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-13 18:14:09 +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 {
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user