|
5 | 5 | // Transfer (FIT) Protocol License. |
6 | 6 | ///////////////////////////////////////////////////////////////////////////////////////////// |
7 | 7 | // ****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 |
10 | 10 | ///////////////////////////////////////////////////////////////////////////////////////////// |
11 | 11 |
|
12 | 12 |
|
@@ -548,7 +548,7 @@ class Decoder { |
548 | 548 | const targetField = fields[field.components[j]]; |
549 | 549 | if (mesg[targetField.name] == null) { |
550 | 550 | const baseType = FIT.FieldTypeToBaseType[targetField.type]; |
551 | | - const invalidValue = FIT.BaseTypeDefinitions[baseType].invalid; |
| 551 | + const invalidValue = baseType != null ? FIT.BaseTypeDefinitions[baseType].invalid : 0xFF; |
552 | 552 |
|
553 | 553 | mesg[targetField.name] = { |
554 | 554 | fieldValue: [], |
@@ -712,7 +712,7 @@ class Decoder { |
712 | 712 | const fileHeader = { |
713 | 713 | headerSize: stream.readByte(), |
714 | 714 | protocolVersion: stream.readByte(), |
715 | | - profileVersion: stream.readUInt16() / 100, |
| 715 | + profileVersion: stream.readUInt16(), |
716 | 716 | dataSize: stream.readUInt32(), |
717 | 717 | dataType: stream.readString(4), |
718 | 718 | headerCRC: 0 |
|
0 commit comments