Skip to content

Commit

Permalink
added garmin d2 mach 1 pro
Browse files Browse the repository at this point in the history
  • Loading branch information
mipapo committed Jan 20, 2024
1 parent 219ffa1 commit 892c374
Show file tree
Hide file tree
Showing 4 changed files with 31 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 @@ -681,6 +681,7 @@ class DeviceProfile extends AbstractEnum
const GARMIN_EDGE_1040 = 656;
const GARMIN_FENIX_7_PRO_SOLAR = 657;
const GARMIN_EPIX_2_PRO = 658;
const GARMIN_D_2_MACH_1_PRO = 659;

public static function getSlugs(): array
{
Expand Down
27 changes: 27 additions & 0 deletions src/Device/GarminD2Mach1Pro.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?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 GarminD2Mach1Pro extends AbstractDevice
{
use GarminDeviceTrait;

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

public function getName(): string
{
return 'D2 Mach 1 Pro';
}
}
1 change: 1 addition & 0 deletions src/Mapping/GarminFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ protected function getMapping()
2547 => DeviceProfile::GARMIN_D_2_BRAVO_TITANIUM,
2819 => DeviceProfile::GARMIN_D_2_CHARLIE,
4079 => DeviceProfile::GARMIN_D_2_MACH_1,
4556 => DeviceProfile::GARMIN_D_2_MACH_1_PRO,
3011 => DeviceProfile::GARMIN_EDGE_EXPLORE,
2204 => DeviceProfile::GARMIN_EDGE_EXPLORE_1000,
2531 => DeviceProfile::GARMIN_EDGE_EXPLORE_820,
Expand Down
2 changes: 2 additions & 0 deletions src/Mapping/NameMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ protected function getMapping()
'xert' => DeviceProfile::APP_XERT,
'zwift run' => DeviceProfile::APP_ZWIFT,
'zwift' => DeviceProfile::APP_ZWIFT,
'marq_athlete' => DeviceProfile::GARMIN_MARQ_ATHLETE,
'fenix3_hr ' => DeviceProfile::GARMIN_FENIX_3_H_R
];
}

Expand Down

0 comments on commit 892c374

Please sign in to comment.