diff --git a/src/Device/DeviceProfile.php b/src/Device/DeviceProfile.php index bf9cf07..73e3d56 100644 --- a/src/Device/DeviceProfile.php +++ b/src/Device/DeviceProfile.php @@ -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 { diff --git a/src/Device/GarminEpix2Pro.php b/src/Device/GarminEpix2Pro.php new file mode 100644 index 0000000..6fa8f85 --- /dev/null +++ b/src/Device/GarminEpix2Pro.php @@ -0,0 +1,32 @@ + + * + * 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; + } +} diff --git a/src/Mapping/GarminFitSdkMapping.php b/src/Mapping/GarminFitSdkMapping.php index 0aeca93..72b7f1c 100644 --- a/src/Mapping/GarminFitSdkMapping.php +++ b/src/Mapping/GarminFitSdkMapping.php @@ -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,