Moyoung: Support the Misirun C17

This commit is contained in:
Arjan Schrijver
2025-06-11 20:58:00 +02:00
parent 5ee8e1f55f
commit ac2b0d5b54
3 changed files with 66 additions and 0 deletions
@@ -0,0 +1,63 @@
/* Copyright (C) 2024 Arjan Schrijver
This file is part of Gadgetbridge.
Gadgetbridge is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Gadgetbridge is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. */
package nodomain.freeyourgadget.gadgetbridge.devices.moyoung;
import androidx.annotation.DrawableRes;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
public class MisirunC17Coordinator extends AbstractMoyoungDeviceCoordinator {
private static final Logger LOG = LoggerFactory.getLogger(MisirunC17Coordinator.class);
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("C17");
}
@Override
public int getDeviceNameResource() {
return R.string.devicetype_misirun_c17;
}
@Override
@DrawableRes
public int getDefaultIconResource() {
return R.drawable.ic_device_banglejs;
}
@Override
@DrawableRes
public int getDisabledIconResource() {
return R.drawable.ic_device_banglejs_disabled;
}
@Override
public String getManufacturer() {
return "Misirun";
}
@Override
public int getMtu() {
return 508;
}
}
@@ -263,6 +263,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiCompositionScaleCo
import nodomain.freeyourgadget.gadgetbridge.devices.miscale.MiSmartScaleCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moondrop.MoondropSpaceTravelCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.ColmiI28UltraCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.moyoung.MisirunC17Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.no1f1.No1F1Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.CmfBudsPro2Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.nothing.Ear1Coordinator;
@@ -672,6 +673,7 @@ public enum DeviceType {
COLMI_R10(ColmiR10Coordinator.class),
COLMI_R12(ColmiR12Coordinator.class),
COLMI_I28_ULTRA(ColmiI28UltraCoordinator.class),
MISIRUN_C17(MisirunC17Coordinator.class),
B_AND_W_P_SERIES(BandWPSeriesDeviceCoordinator.class),
EARFUN_AIR_S(EarFunAirSCoordinator.class),
EARFUN_AIR_PRO_4(EarFunAirPro4Coordinator.class),
+1
View File
@@ -2020,6 +2020,7 @@
<string name="devicetype_colmi_r10">Colmi R10</string>
<string name="devicetype_colmi_r12">Colmi R12</string>
<string name="devicetype_colmi_i28_ultra">Colmi i28 Ultra</string>
<string name="devicetype_misirun_c17">Misirun C17</string>
<string name="devicetype_ultrahuma_ring_air">Ultrahuman Ring AIR</string>
<string name="devicetype_bandw_pseries">Bowers and Wilkins P series</string>
<string name="devicetype_earfun_air_s">EarFun Air S</string>