Skip to content

Commit

Permalink
missing devices, missing mappings
Browse files Browse the repository at this point in the history
  • Loading branch information
mipapo committed Jun 26, 2023
1 parent 0b4a628 commit feb501a
Show file tree
Hide file tree
Showing 5 changed files with 62 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Device/DeviceProfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -1899,4 +1899,10 @@ class DeviceProfile extends AbstractEnum
/** @var int */
const GARMIN_EPIX_PRO = 626;

/** @var int */
const SIGMA_SPORT_ROX_40 = 627;

/** @var int */
const POLAR_H_9 = 628;

}
27 changes: 27 additions & 0 deletions src/Device/PolarH9.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 PolarH9 extends AbstractDevice
{
use PolarDeviceTrait;

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

public function getName(): string
{
return 'H9';
}
}
27 changes: 27 additions & 0 deletions src/Device/SigmaSportRox40.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 SigmaSportRox40 extends AbstractDevice
{
use SigmaDeviceTrait;

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

public function getName(): string
{
return 'ROX 4.0';
}
}
1 change: 1 addition & 0 deletions src/Mapping/PolarFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ protected function getMapping()
110 => DeviceProfile::POLAR_A_360,
122 => DeviceProfile::POLAR_M_600,
123 => DeviceProfile::POLAR_M_200,
222 => DeviceProfile::POLAR_H_9,
133 => DeviceProfile::POLAR_H_10,
151 => DeviceProfile::POLAR_O_H_1,
163 => DeviceProfile::POLAR_M_430,
Expand Down
1 change: 1 addition & 0 deletions src/Mapping/SigmaSportFitSdkMapping.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ protected function getMapping()
41 => DeviceProfile::SIGMA_SPORT_ROX_110_GPS,
15 => DeviceProfile::SIGMA_SPORT_ROX_100_GPS,
49 => DeviceProfile::SIGMA_SPORT_ROX_111_EVO,
52 => DeviceProfile::SIGMA_SPORT_ROX_40
];
/*
* Unknown:
Expand Down

0 comments on commit feb501a

Please sign in to comment.