Skip to content

Commit

Permalink
fix/add garmin edge 1040 solar
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Pohl committed Jul 6, 2022
1 parent 974d812 commit 1aead68
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -1670,4 +1670,7 @@ class DeviceProfile extends AbstractEnum

/** @var int */
const GARMIN_FORERUNNER_955_SOLAR = 549;

/** @var int */
const GARMIN_EDGE_1040_SOLAR = 550;
}
32 changes: 32 additions & 0 deletions src/Device/GarminEdge1040Solar.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 GarminEdge1040Solar extends AbstractDevice
{
use GarminDeviceTrait;

public function getEnum()
{
return DeviceProfile::GARMIN_EDGE_1040_SOLAR;
}

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

public function hasBarometer()
{
return true;
}
}
2 changes: 1 addition & 1 deletion src/Mapping/GarminFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ protected function getMapping()
2797 => DeviceProfile::GARMIN_FENIX_5_S,
2544 => DeviceProfile::GARMIN_FENIX_5_S,
2604 => DeviceProfile::GARMIN_FENIX_5_X,
3843 => DeviceProfile::GARMIN_FENIX_5_X,
3843 => DeviceProfile::GARMIN_EDGE_1040_SOLAR,
2798 => DeviceProfile::GARMIN_FENIX_5_X,
3089 => DeviceProfile::GARMIN_FENIX_5_X_PLUS,
3135 => DeviceProfile::GARMIN_FENIX_5_X_PLUS,
Expand Down

0 comments on commit 1aead68

Please sign in to comment.