igpsport: Split iGS630S to its own coordinator

* minor log fix
This commit is contained in:
Vitaliy Tomin
2026-05-13 23:33:24 +02:00
committed by José Rebelo
parent 6255057772
commit ad1ff7250d
5 changed files with 45 additions and 2 deletions
@@ -33,7 +33,7 @@ public class IGPSportiGS630Coordinator extends IGPSportAbstractCoordinator {
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("iGS630|iGS630s");
return Pattern.compile("iGS630");
}
@Override
@@ -0,0 +1,40 @@
/* Copyright (C) 2025 Vitaliy Tomin, Thomas Kuehne
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.igpsport;
import java.util.regex.Pattern;
import nodomain.freeyourgadget.gadgetbridge.R;
import nodomain.freeyourgadget.gadgetbridge.impl.GBDevice;
public class IGPSportiGS630SCoordinator extends IGPSportAbstractCoordinator {
@Override
public int getDeviceNameResource() {
return R.string.devicetype_igpsport_igs630s;
}
@Override
protected Pattern getSupportedDeviceName() {
return Pattern.compile("iGS630S");
}
@Override
public boolean supportsWeather(final GBDevice device) {
return true;
}
}
@@ -319,6 +319,7 @@ import nodomain.freeyourgadget.gadgetbridge.devices.idasen.IdasenCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportBSC200Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportBSC200SCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportiGS630Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportiGS630SCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.igpsport.IGPSportiGS800Coordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.itag.ITagCoordinator;
import nodomain.freeyourgadget.gadgetbridge.devices.jyou.BFH16DeviceCoordinator;
@@ -948,6 +949,7 @@ public enum DeviceType {
IGPSPORT_BSC200(IGPSportBSC200Coordinator.class),
IGPSPORT_BSC200S(IGPSportBSC200SCoordinator.class),
IGPSPORT_IGS630(IGPSportiGS630Coordinator.class),
IGPSPORT_IGS630S(IGPSportiGS630SCoordinator.class),
IGPSPORT_IGS800(IGPSportiGS800Coordinator.class),
TEST(TestDeviceCoordinator.class);
@@ -201,7 +201,7 @@ public class IGPSportWeather {
builder.queue();
} catch (IOException e) {
LOG.error("Failed to encode weather " + e);
LOG.error("Failed to encode weather ", e);
}
}
+1
View File
@@ -2253,6 +2253,7 @@
<string name="devicetype_igpsport_bsc200" translatable="false">iGPSPORT BSC200</string>
<string name="devicetype_igpsport_bsc200s" translatable="false">iGPSPORT BSC200S</string>
<string name="devicetype_igpsport_igs630" translatable="false">iGPSPORT iGS630</string>
<string name="devicetype_igpsport_igs630s" translatable="false">iGPSPORT iGS630S</string>
<string name="devicetype_igpsport_igs800" translatable="false">iGPSPORT iGS800</string>
<string name="task_installing_route">Installing route</string>
<string name="route_upload_completed">Route upload completed</string>