mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-25 10:05:49 +01:00
Fossil Hybrid: fixed missing class
This commit is contained in:
parent
12e67312c7
commit
d8ade53cdf
@ -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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user