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 Feb 1, 2021
1 parent 34c15e6 commit b617a9e
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 @@ -789,7 +789,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 b617a9e

Please sign in to comment.