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; + } +}