Skip to content

Commit

Permalink
Added FIT types, to make fields like manufacturer readable
Browse files Browse the repository at this point in the history
  • Loading branch information
pierremtb committed May 18, 2016
1 parent e658ef2 commit 95ce9cc
Show file tree
Hide file tree
Showing 7 changed files with 10,072 additions and 214 deletions.
14 changes: 3 additions & 11 deletions dist/binary.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ function formatByType(data, type, scale, offset) {
case 'uint16':
return scale ? data / scale + offset : data;
default:
if (_fit.FIT.types[type]) {
return _fit.FIT.types[type][data];
}
return data;
}
}
Expand Down Expand Up @@ -196,17 +199,6 @@ function readRecord(blob, messageTypes, startIndex, options, startDate) {
message: fields
};

switch (messageType.globalMessageNumber) {
case _fit.FIT.TYPE.RECORD:
break;
case _fit.FIT.TYPE.LAP:
break;
case _fit.FIT.TYPE.SESSION:
break;
default:
break;
}

return result;
}

Expand Down
Loading

0 comments on commit 95ce9cc

Please sign in to comment.