Skip to content

Commit

Permalink
add epix 2 pro mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
mipapo committed Jan 20, 2024
1 parent b63c0f5 commit 219ffa1
Show file tree
Hide file tree
Showing 3 changed files with 34 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 @@ -680,6 +680,7 @@ class DeviceProfile extends AbstractEnum
const GARMIN_FORETREX_801 = 655;
const GARMIN_EDGE_1040 = 656;
const GARMIN_FENIX_7_PRO_SOLAR = 657;
const GARMIN_EPIX_2_PRO = 658;

public static function getSlugs(): array
{
Expand Down
32 changes: 32 additions & 0 deletions src/Device/GarminEpix2Pro.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 <[email protected]>
*
* 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 GarminEpix2Pro extends AbstractDevice
{
use GarminDeviceTrait;

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

public function getName(): string
{
return 'Epix 2 Pro';
}

public function hasBarometer(): bool
{
return true;
}
}
1 change: 1 addition & 0 deletions src/Mapping/GarminFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ protected function getMapping()
2457 => DeviceProfile::GARMIN_EPIX,
3943 => DeviceProfile::GARMIN_EPIX_2,
3944 => DeviceProfile::GARMIN_EPIX_2,
4313 => DeviceProfile::GARMIN_EPIX_2_PRO,
4312 => DeviceProfile::GARMIN_EPIX_PRO,
4314 => DeviceProfile::GARMIN_EPIX_PRO,
2140 => DeviceProfile::GARMIN_ETREX_TOUCH,
Expand Down

0 comments on commit 219ffa1

Please sign in to comment.