1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-11-25 11:26:47 +01:00

remove debug filtering

This commit is contained in:
Gordon Williams 2019-12-09 10:23:31 +00:00
parent 0952941d73
commit 77658c702f

View File

@ -49,12 +49,17 @@ public class BangleJSCoordinator extends AbstractDeviceCoordinator {
@Override
public DeviceType getSupportedType(GBDeviceCandidate candidate) {
String name = candidate.getDevice().getName();
// FIXME - disabled for debug
//if (name != null && name.startsWith("Bangle.js")) {
/* Filter by Espruino devices to avoid getting
the device chooser full of spam devices. */
if (name != null && (
name.startsWith("Bangle.js") ||
name.startsWith("Pixl.js") ||
name.startsWith("Puck.js") ||
name.startsWith("MDBT42Q") ||
name.startsWith("Espruino")))
return DeviceType.BANGLEJS;
//}
//return DeviceType.UNKNOWN;
return DeviceType.UNKNOWN;
}
@Override