Skip to content

Commit

Permalink
add Suunto Race
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pohl committed Oct 15, 2023
1 parent bc124e5 commit 4a056ed
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,7 @@ class DeviceProfile extends AbstractEnum
const GARMIN_MARQ_COMMANDER_2_CARBON = 651;
const GARMIN_VENU_3_S = 652;
const GARMIN_VIVO_MOVE_TREND = 653;
const SUUNTO_RACE = 654;

public static function getSlugs(): array
{
Expand Down
32 changes: 32 additions & 0 deletions src/Device/SuuntoRace.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

/*
* This file is part of the Runalyze Device List.
*
* (c) RUNALYZE <mail@runalyze.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/

namespace Runalyze\Devices\Device;

class SuuntoRace extends AbstractDevice
{
use SuuntoDeviceTrait;

public function getEnum(): int
{
return DeviceProfile::SUUNTO_RACE;
}

public function getName(): string
{
return 'Race';
}

public function hasBarometer(): bool
{
return true;
}
}
1 change: 1 addition & 0 deletions src/Distributor/Suunto.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ public function getDeviceEnumList(): array
DeviceProfile::SUUNTO_VYPER_NOVO,
DeviceProfile::SUUNTO_VERTICAL,
DeviceProfile::SUUNTO_5,
DeviceProfile::SUUNTO_RACE
];
}
}
1 change: 1 addition & 0 deletions src/Mapping/SuuntoFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ protected function getMapping()
56 => DeviceProfile::SUUNTO_5_PEAK,
58 => DeviceProfile::SUUNTO_9_PEAK_PRO,
59 => DeviceProfile::SUUNTO_VERTICAL,
60 => DeviceProfile::SUUNTO_RACE
];
}

Expand Down

0 comments on commit 4a056ed

Please sign in to comment.