From d8ade53cdf773ce46fec2e7c8dfb9ad9b60ad294 Mon Sep 17 00:00:00 2001 From: Daniel Dakhno Date: Fri, 30 Oct 2020 04:25:11 +0100 Subject: [PATCH] Fossil Hybrid: fixed missing class --- .../DeviceSecurityVersionInfo.java | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/fossil/device_info/DeviceSecurityVersionInfo.java diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/fossil/device_info/DeviceSecurityVersionInfo.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/fossil/device_info/DeviceSecurityVersionInfo.java new file mode 100644 index 000000000..665b7605b --- /dev/null +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/qhybrid/requests/fossil/device_info/DeviceSecurityVersionInfo.java @@ -0,0 +1,27 @@ +package nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.requests.fossil.device_info; + +import android.util.Log; + +import androidx.annotation.NonNull; + +import java.nio.ByteBuffer; +import java.nio.ByteOrder; +import java.util.HashMap; + +import nodomain.freeyourgadget.gadgetbridge.service.devices.qhybrid.file.FileHandle; + +public class DeviceSecurityVersionInfo implements DeviceInfo { + private int versionMajor, versionMinor; + + @Override + public void parsePayload(byte[] payload) { + versionMajor = payload[0]; + versionMinor = payload[1]; + } + + @NonNull + @Override + public String toString() { + return versionMajor + "." + versionMinor; + } +}