Skip to content

Commit

Permalink
Bugfixed: name and sport in segment_id was handwritten.
Browse files Browse the repository at this point in the history
  • Loading branch information
rgmf committed May 17, 2022
1 parent bb74cfe commit 60a8b49
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fit_encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ def _encode_message_file_creator(self):

def _encode_message_segment_id(self):
message = get_message("segment_id")
message.set_field_value("name", b"Segmento Prueba")
message.set_field_value("sport", SPORT["cycling"])
message.set_field_value("name", self._name.encode())
message.set_field_value("sport", self._sport)
record = Record(message)
self._bytes.segment_id = record.bytes

Expand Down

0 comments on commit 60a8b49

Please sign in to comment.