mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Amazfit Bip: Attempt fixing GPS tracks recorded with latest firmware
This commit is contained in:
@@ -124,6 +124,9 @@ public class ActivityDetailsParser {
|
||||
case TYPE_GPS_SPEED6:
|
||||
i += consumeSpeed6(bytes, i);
|
||||
break;
|
||||
default:
|
||||
LOG.warn("unknown packet type" + type);
|
||||
i+=6;
|
||||
}
|
||||
}
|
||||
} catch (IndexOutOfBoundsException ex) {
|
||||
|
@@ -167,7 +167,8 @@ public class FetchSportsSummaryOperation extends AbstractFetchOperation {
|
||||
BaseActivitySummary summary = new BaseActivitySummary();
|
||||
ByteBuffer buffer = ByteBuffer.wrap(stream.toByteArray()).order(ByteOrder.LITTLE_ENDIAN);
|
||||
// summary.setVersion(BLETypeConversions.toUnsigned(buffer.getShort()));
|
||||
buffer.getShort(); // version
|
||||
short version = buffer.getShort(); // version
|
||||
LOG.debug("Got verison " + version);
|
||||
int activityKind = ActivityKind.TYPE_UNKNOWN;
|
||||
try {
|
||||
int rawKind = BLETypeConversions.toUnsigned(buffer.getShort());
|
||||
|
Reference in New Issue
Block a user