From 13b078aaddb4c4dd8c8cef8610eb5310e0ed9385 Mon Sep 17 00:00:00 2001 From: Andreas Shimokawa Date: Wed, 14 Aug 2019 19:40:10 +0200 Subject: [PATCH] fix verison typo (before I get a PR again :P) --- .../devices/huami/operations/FetchSportsSummaryOperation.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/FetchSportsSummaryOperation.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/FetchSportsSummaryOperation.java index 777c49c74..6e62cb923 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/FetchSportsSummaryOperation.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/huami/operations/FetchSportsSummaryOperation.java @@ -166,14 +166,14 @@ public class FetchSportsSummaryOperation extends AbstractFetchOperation { ByteBuffer buffer = ByteBuffer.wrap(stream.toByteArray()).order(ByteOrder.LITTLE_ENDIAN); // summary.setVersion(BLETypeConversions.toUnsigned(buffer.getShort())); short version = buffer.getShort(); // version - LOG.debug("Got verison " + version); + LOG.debug("Got sport summary version " + version); int activityKind = ActivityKind.TYPE_UNKNOWN; try { int rawKind = BLETypeConversions.toUnsigned(buffer.getShort()); HuamiSportsActivityType activityType = HuamiSportsActivityType.fromCode(rawKind); activityKind = activityType.toActivityKind(); } catch (Exception ex) { - LOG.error("Error mapping acivity kind: " + ex.getMessage(), ex); + LOG.error("Error mapping activity kind: " + ex.getMessage(), ex); } summary.setActivityKind(activityKind);