Skip to content

Commit

Permalink
new devices
Browse files Browse the repository at this point in the history
  • Loading branch information
mipapo committed May 4, 2024
1 parent 5654fbe commit e8cbf3e
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 0 deletions.
32 changes: 32 additions & 0 deletions src/Device/CorosVertix2S.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 CorosVertix2S extends AbstractDevice
{
use CorosDeviceTrait;

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

public function getName(): string
{
return 'Vertix 2S';
}

public function hasBarometer(): bool
{
return true;
}
}
1 change: 1 addition & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ class DeviceProfile extends AbstractEnum
public const GARMIN_FORERUNNER_165 = 672;
public const GARMIN_FORERUNNER_165_MUSIC = 673;
public const POLAR_H_7 = 674;
public const COROS_VERTIX_2_S = 675;

public static function getSlugs(): array
{
Expand Down
1 change: 1 addition & 0 deletions src/Distributor/Coros.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function getDeviceEnumList(): array
DeviceProfile::COROS_PACE_3,
DeviceProfile::COROS_VERTIX,
DeviceProfile::COROS_VERTIX_2,
DeviceProfile::COROS_VERTIX_2_S,
DeviceProfile::COROS_UNKNOWN,
];
}
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/CorosFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ protected function getMapping()
831 => DeviceProfile::COROS_VERTIX,
294 => DeviceProfile::COROS_VERTIX_2,
832 => DeviceProfile::COROS_VERTIX_2,
833 => DeviceProfile::COROS_VERTIX_2_S,
841 => DeviceProfile::COROS_APEX_PRO,
899 => DeviceProfile::COROS_UNKNOWN,
812 => DeviceProfile::COROS_APEX_2,
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/PolarFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ protected function getMapping()
263 => DeviceProfile::POLAR_VANTAGE_V_3,
235 => DeviceProfile::POLAR_VERITY_SENSE,
236 => DeviceProfile::POLAR_VANTAGE_M_2,
268 => DeviceProfile::POLAR_VANTAGE_M_2,
241 => DeviceProfile::POLAR_IGNITE_2,
251 => DeviceProfile::POLAR_GRIT_X_PRO,
264 => DeviceProfile::POLAR_GRIT_X_PRO,
Expand Down

0 comments on commit e8cbf3e

Please sign in to comment.