|
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.107Release |
9 | | -// Tag = production/release/21.107.00-0-geade151 |
| 8 | +// Profile Version = 21.115Release |
| 9 | +// Tag = production/release/21.115.00-0-gfe0a7f8 |
10 | 10 | ///////////////////////////////////////////////////////////////////////////////////////////// |
11 | 11 |
|
12 | 12 |
|
@@ -227,14 +227,14 @@ class Decoder { |
227 | 227 | #decodeNextRecord() { |
228 | 228 | const recordHeader = this.#stream.peekByte(); |
229 | 229 |
|
230 | | - if ((recordHeader & MESG_DEFINITION_MASK) === MESG_HEADER_MASK) { |
231 | | - return this.#decodeMessage(); |
232 | | - } |
233 | | - |
234 | 230 | if ((recordHeader & COMPRESSED_HEADER_MASK) === COMPRESSED_HEADER_MASK) { |
235 | 231 | return this.#decodeCompressedTimestampDataMessage(); |
236 | 232 | } |
237 | 233 |
|
| 234 | + if ((recordHeader & MESG_DEFINITION_MASK) === MESG_HEADER_MASK) { |
| 235 | + return this.#decodeMessage(); |
| 236 | + } |
| 237 | + |
238 | 238 | if ((recordHeader & MESG_DEFINITION_MASK) === MESG_DEFINITION_MASK) { |
239 | 239 | return this.#decodeMessageDefinition(); |
240 | 240 | } |
@@ -380,9 +380,10 @@ class Decoder { |
380 | 380 | else { |
381 | 381 | this.#expandSubFields(mesgNum, message); |
382 | 382 | this.#expandComponents(mesgNum, message, fields); |
383 | | - this.#transformValues(message, messageDefinition); |
384 | 383 | } |
385 | 384 |
|
| 385 | + this.#transformValues(message, messageDefinition); |
| 386 | + |
386 | 387 | if (messageDefinition.name != null) { |
387 | 388 | Object.keys(message).forEach((key) => { |
388 | 389 | message[key] = message[key].fieldValue; |
|
0 commit comments