Skip to content

Commit 3b6956e

Browse files
authored
Garmin FIT SDK 21.107.00
Garmin FIT SDK 21.107.00
2 parents 8075fb1 + 12a57a0 commit 3b6956e

File tree

15 files changed

+1111
-34
lines changed

15 files changed

+1111
-34
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@garmin-fit/sdk",
3-
"version": "21.101.0",
3+
"version": "21.107.0",
44
"description": "FIT JavaScript SDK",
55
"main": "src/index.js",
66
"type": "module",

src/accumulator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.101Release
9-
// Tag = production/release/21.101.00-0-gceb92d5
8+
// Profile Version = 21.107Release
9+
// Tag = production/release/21.107.00-0-geade151
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

src/bit-stream.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.101Release
9-
// Tag = production/release/21.101.00-0-gceb92d5
8+
// Profile Version = 21.107Release
9+
// Tag = production/release/21.107.00-0-geade151
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

src/crc-calculator.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.101Release
9-
// Tag = production/release/21.101.00-0-gceb92d5
8+
// Profile Version = 21.107Release
9+
// Tag = production/release/21.107.00-0-geade151
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

src/decoder.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.101Release
9-
// Tag = production/release/21.101.00-0-gceb92d5
8+
// Profile Version = 21.107Release
9+
// Tag = production/release/21.107.00-0-geade151
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

@@ -548,7 +548,7 @@ class Decoder {
548548
const targetField = fields[field.components[j]];
549549
if (mesg[targetField.name] == null) {
550550
const baseType = FIT.FieldTypeToBaseType[targetField.type];
551-
const invalidValue = FIT.BaseTypeDefinitions[baseType].invalid;
551+
const invalidValue = baseType != null ? FIT.BaseTypeDefinitions[baseType].invalid : 0xFF;
552552

553553
mesg[targetField.name] = {
554554
fieldValue: [],
@@ -712,7 +712,7 @@ class Decoder {
712712
const fileHeader = {
713713
headerSize: stream.readByte(),
714714
protocolVersion: stream.readByte(),
715-
profileVersion: stream.readUInt16() / 100,
715+
profileVersion: stream.readUInt16(),
716716
dataSize: stream.readUInt32(),
717717
dataType: stream.readString(4),
718718
headerCRC: 0

src/fit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.101Release
9-
// Tag = production/release/21.101.00-0-gceb92d5
8+
// Profile Version = 21.107Release
9+
// Tag = production/release/21.107.00-0-geade151
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
// Transfer (FIT) Protocol License.
66
/////////////////////////////////////////////////////////////////////////////////////////////
77
// ****WARNING**** This file is auto-generated! Do NOT edit this file.
8-
// Profile Version = 21.101Release
9-
// Tag = production/release/21.101.00-0-gceb92d5
8+
// Profile Version = 21.107Release
9+
// Tag = production/release/21.107.00-0-geade151
1010
/////////////////////////////////////////////////////////////////////////////////////////////
1111

1212

0 commit comments

Comments
 (0)