Skip to content

Commit 84733e5

Browse files
author
Michael Pohl
committed
update devices
1 parent b3f6848 commit 84733e5

5 files changed

Lines changed: 70 additions & 0 deletions

File tree

src/Device/DeviceProfile.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,8 @@ class DeviceProfile extends AbstractEnum
767767
public const GARMIN_GPSMAP_67 = 742;
768768
public const APP_TRAINING_PEAKS_VIRTUAL = 743;
769769
public const HAMMERHEAD_KAROO_3 = 744;
770+
public const SUUNTO_RACE_2 = 745;
771+
public const SUUNTO_GPS_TRACK_POD = 746;
770772

771773
public static function getSlugs(): array
772774
{

src/Device/SuuntoGpsTrackPod.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Runalyze Device List.
5+
*
6+
* (c) RUNALYZE <mail@runalyze.com>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
12+
namespace Runalyze\Devices\Device;
13+
14+
class SuuntoGpsTrackPod extends AbstractDevice
15+
{
16+
use SuuntoDeviceTrait;
17+
18+
public function getEnum(): int
19+
{
20+
return DeviceProfile::SUUNTO_GPS_TRACK_POD;
21+
}
22+
23+
public function getName(): string
24+
{
25+
return 'GPS Track POD';
26+
}
27+
28+
public function hasBarometer(): bool
29+
{
30+
return false;
31+
}
32+
}

src/Device/SuuntoRace2.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Runalyze Device List.
5+
*
6+
* (c) RUNALYZE <mail@runalyze.com>
7+
*
8+
* This source file is subject to the MIT license that is bundled
9+
* with this source code in the file LICENSE.
10+
*/
11+
12+
namespace Runalyze\Devices\Device;
13+
14+
class SuuntoRace2 extends AbstractDevice
15+
{
16+
use SuuntoDeviceTrait;
17+
18+
public function getEnum(): int
19+
{
20+
return DeviceProfile::SUUNTO_RACE_2;
21+
}
22+
23+
public function getName(): string
24+
{
25+
return 'Race 2';
26+
}
27+
28+
public function hasBarometer(): bool
29+
{
30+
return true;
31+
}
32+
}

src/Distributor/Suunto.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@ public function getDeviceEnumList(): array
8282
DeviceProfile::SUUNTO_VERTICAL,
8383
DeviceProfile::SUUNTO_5,
8484
DeviceProfile::SUUNTO_RACE,
85+
DeviceProfile::SUUNTO_RACE_2,
8586
DeviceProfile::SUUNTO_RACE_S,
8687
DeviceProfile::SUUNTO_AQUA,
8788
DeviceProfile::SUUNTO_RUN,
89+
DeviceProfile::SUUNTO_GPS_TRACK_POD,
8890
];
8991
}
9092
}

src/Mapping/SuuntoFitSdkMapping.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ protected function getMapping()
7171
49 => DeviceProfile::SUUNTO_D_9,
7272
52 => DeviceProfile::SUUNTO_VYPER_NOVO,
7373
53 => DeviceProfile::SUUNTO_ZOOP_NOVO,
74+
55 => DeviceProfile::SUUNTO_GPS_TRACK_POD,
7475
56 => DeviceProfile::SUUNTO_5_PEAK,
7576
58 => DeviceProfile::SUUNTO_9_PEAK_PRO,
7677
59 => DeviceProfile::SUUNTO_VERTICAL,
@@ -79,6 +80,7 @@ protected function getMapping()
7980
62 => DeviceProfile::SUUNTO_OCEAN,
8081
63 => DeviceProfile::SUUNTO_AQUA,
8182
65 => DeviceProfile::SUUNTO_RUN,
83+
66 => DeviceProfile::SUUNTO_RACE_2,
8284
200 => DeviceProfile::SUUNTO_AMBIT_2,
8385
];
8486
}

0 commit comments

Comments
 (0)