From 884538de5e43b0bb13e60255a62fc678697eb935 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20B=C3=B6hler?= Date: Mon, 31 Jan 2022 23:49:31 +0100 Subject: [PATCH] Add basic support for Casio GBD-H1000 --- README.md | 1 + .../devices/casio/gbx100/CasioGBX100DeviceCoordinator.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 7a8513aff..3eb5905e6 100644 --- a/README.md +++ b/README.md @@ -50,6 +50,7 @@ vendor's servers. - Casio GBX-100 - Casio GBD-100 - Casio GBD-200 + - Casio GBD-H1000 - [FitPro](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/FitPro) - Fossil - [Hybrid HR](https://codeberg.org/Freeyourgadget/Gadgetbridge/wiki/Fossil-Hybrid-HR) [**\[!\]**](#special-pairing-procedures) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/casio/gbx100/CasioGBX100DeviceCoordinator.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/casio/gbx100/CasioGBX100DeviceCoordinator.java index fc0538162..fe1e00c10 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/casio/gbx100/CasioGBX100DeviceCoordinator.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/casio/gbx100/CasioGBX100DeviceCoordinator.java @@ -52,7 +52,8 @@ public class CasioGBX100DeviceCoordinator extends AbstractDeviceCoordinator { String name = candidate.getDevice().getName(); if (name != null) { if (name.startsWith("CASIO") && (name.endsWith("GBX-100") || - name.endsWith("GBD-200") || name.endsWith("GBD-100"))) { + name.endsWith("GBD-200") || name.endsWith("GBD-100") || + name.endsWith("GBD-H1000"))) { return DeviceType.CASIOGBX100; } }