Skip to content

Commit

Permalink
Ambit 3: Try interpreting the incoming data from the watch as UTF-8
Browse files Browse the repository at this point in the history
May solve isue #266
  • Loading branch information
centic9 committed Dec 29, 2021
1 parent edfde58 commit 11e6f99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libambit/device_driver_ambit3.c
Original file line number Diff line number Diff line change
Expand Up @@ -804,7 +804,7 @@ static size_t parse_log_entry(ambit_object_t *object, const uint8_t *data, ambit
if (log_header->header.activity_name) {
free(log_header->header.activity_name);
}
log_header->header.activity_name = utf8memconv((const char*)(data + offset), 16, "ISO-8859-15");
log_header->header.activity_name = utf8memconv((const char*)(data + offset), 16, "UTF-8");

offset += (strnlen((const char*)(data + offset), 20)+1);

Expand Down

0 comments on commit 11e6f99

Please sign in to comment.