Skip to content

Commit d03e8f1

Browse files
committed
test fixed
1 parent 5453767 commit d03e8f1

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

tst/Devices/deviceindex.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ DEFINE_DEVICE(FitPlusBike_MRK_NoSettings, "FitPlus Bike (MRK, no settings)");
7878
DEFINE_DEVICE(FitPlusF5, "FitPlus F5");
7979
DEFINE_DEVICE(FitShowBF, "FitShow BF");
8080
DEFINE_DEVICE(FitShowFS, "FitShow FS");
81+
DEFINE_DEVICE(FitShowTR510T, "FitShow TR510-T");
8182
DEFINE_DEVICE(FitShowSW, "FitShow SW");
8283
DEFINE_DEVICE(FlywheelBike, "Flywheel Bike");
8384
DEFINE_DEVICE(FlywheelLifeFitnessIC8, "Flywheel Life Fitness IC8");

tst/Devices/deviceindex.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ class DeviceIndex
8383
DEFINE_DEVICE(FitPlusF5, "FitPlus F5");
8484
DEFINE_DEVICE(FitShowBF, "FitShow BF");
8585
DEFINE_DEVICE(FitShowFS, "FitShow FS");
86+
DEFINE_DEVICE(FitShowTR510T, "FitShow TR510-T");
8687
DEFINE_DEVICE(FitShowSW, "FitShow SW");
8788
DEFINE_DEVICE(FlywheelBike, "Flywheel Bike");
8889
DEFINE_DEVICE(FlywheelLifeFitnessIC8, "Flywheel Life Fitness IC8");

tst/Devices/devicetestdataindex.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,6 @@ void DeviceTestDataIndex::Initialize() {
399399
RegisterNewDeviceTestData(DeviceIndex::FitShowFS)
400400
->expectDevice<fitshowtreadmill>()
401401
->acceptDeviceName("FS-", DeviceNameComparison::StartsWith)
402-
->acceptDeviceName("TR510-T", DeviceNameComparison::StartsWithIgnoreCase)
403402
->configureSettingsWith(
404403
[](const DeviceDiscoveryInfo& info, bool enable, std::vector<DeviceDiscoveryInfo>& configurations) -> void
405404
{
@@ -445,6 +444,11 @@ void DeviceTestDataIndex::Initialize() {
445444
})
446445
->excluding<ftmsbike>();
447446

447+
// FitShow TR510-T
448+
RegisterNewDeviceTestData(DeviceIndex::FitShowTR510T)
449+
->expectDevice<fitshowtreadmill>()
450+
->acceptDeviceName("TR510-T", DeviceNameComparison::StartsWithIgnoreCase);
451+
448452

449453
// FitShow SW
450454
RegisterNewDeviceTestData(DeviceIndex::FitShowSW)

0 commit comments

Comments
 (0)