diff --git a/src/Device/DeviceProfile.php b/src/Device/DeviceProfile.php index 73e3d56..49e56f8 100644 --- a/src/Device/DeviceProfile.php +++ b/src/Device/DeviceProfile.php @@ -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 { diff --git a/src/Device/GarminD2Mach1Pro.php b/src/Device/GarminD2Mach1Pro.php new file mode 100644 index 0000000..3133cb4 --- /dev/null +++ b/src/Device/GarminD2Mach1Pro.php @@ -0,0 +1,27 @@ + + * + * 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'; + } +} diff --git a/src/Mapping/GarminFitSdkMapping.php b/src/Mapping/GarminFitSdkMapping.php index 72b7f1c..d9f968f 100644 --- a/src/Mapping/GarminFitSdkMapping.php +++ b/src/Mapping/GarminFitSdkMapping.php @@ -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, diff --git a/src/Mapping/NameMapping.php b/src/Mapping/NameMapping.php index 9f6e526..5450b9e 100644 --- a/src/Mapping/NameMapping.php +++ b/src/Mapping/NameMapping.php @@ -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 ]; }