Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pohl committed Nov 1, 2023
1 parent d1628c2 commit c46d58e
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,8 @@ class DeviceProfile extends AbstractEnum
const GARMIN_VIVO_MOVE_TREND = 653;
const SUUNTO_RACE = 654;
const GARMIN_FORETREX_801 = 655;
const GARMIN_EDGE_1040 = 656;
const GARMIN_FENIX_7_PRO_SOLAR = 657;

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

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

public function getName(): string
{
return 'Edge 1040';
}

public function hasBarometer(): bool
{
return true;
}
}
32 changes: 32 additions & 0 deletions src/Device/GarminFenix7ProSolar.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 GarminFenix7ProSolar extends AbstractDevice
{
use GarminDeviceTrait;

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

public function getName(): string
{
return 'Fenix 7 Pro Solar';
}

public function hasBarometer(): bool
{
return true;
}
}
4 changes: 3 additions & 1 deletion src/Distributor/Garmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,9 @@ public function getDeviceEnumList(): array
DeviceProfile::GARMIN_TACTIX_7_AMOLED,
DeviceProfile::GARMIN_MARQ_COMMANDER_2_CARBON,
DeviceProfile::GARMIN_VENU_3_S,
DeviceProfile::GARMIN_VIVO_MOVE_TREND
DeviceProfile::GARMIN_VIVO_MOVE_TREND,
DeviceProfile::GARMIN_EDGE_1040,
DeviceProfile::GARMIN_FENIX_7_PRO_SOLAR
];
}
}
3 changes: 2 additions & 1 deletion src/Mapping/GarminFitSdkMapping.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

<?php

/*
Expand Down Expand Up @@ -114,6 +113,7 @@ protected function getMapping()
3570 => DeviceProfile::GARMIN_EDGE_1030_PLUS,
2924 => DeviceProfile::GARMIN_EDGE_1030,
4305 => DeviceProfile::GARMIN_EDGE_1040_SOLAR,
3841 => DeviceProfile::GARMIN_EDGE_1040,
3638 => DeviceProfile::GARMIN_ENDURO,
3872 => DeviceProfile::GARMIN_ENDURO,
4341 => DeviceProfile::GARMIN_ENDURO_2,
Expand Down Expand Up @@ -187,6 +187,7 @@ protected function getMapping()
3905 => DeviceProfile::GARMIN_FENIX_7_S_SAPPHIRE_SOLAR,
3908 => DeviceProfile::GARMIN_FENIX_7_S_SAPPHIRE_SOLAR,
4374 => DeviceProfile::GARMIN_FENIX_7_S_PRO_SAPPHIRE_SOLAR,
4375 => DeviceProfile::GARMIN_FENIX_7_PRO_SOLAR,
1482 => DeviceProfile::GARMIN_FORERUNNER_10,
1688 => DeviceProfile::GARMIN_FORERUNNER_10,
1903 => DeviceProfile::GARMIN_FORERUNNER_15,
Expand Down

0 comments on commit c46d58e

Please sign in to comment.