Created
February 18, 2018 03:03
-
-
Save proukornew/b82f65866f97e477e793a77509abdb75 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static class C2983b { | |
//Some constants to find code | |
public static final UUID baseUUID = UUID.fromString("00000000-0000-1000-8000-00805f9b34fb"); | |
public static final UUID f13267b = C2983b.genUUIDfromBase(10498); | |
public static final UUID f13268c = C2983b.genUUIDfromBase(6159); | |
public static final UUID f13269d = C2983b.genUUIDfromBase(10777); | |
/* | |
... | |
*/ | |
private BaseSensor genSensorFromScanRecord(BluetoothDevice bluetoothDevice, int i, ParserScanRecord c2956h) { | |
BaseSensor BaseSensor = null; | |
if (!(bluetoothDevice == null || c2956h == null)) { | |
//Fast fix for adding initial support Mi Band 2 HRM | |
//BaseSensor = BaseSensor.newSensorOfSpecType(1, 6); | |
BaseSensor = BaseSensor.newSensorOfSpecType(1, C2983b.typeFromUUIDSlist(c2956h.listOfUuids())); | |
//So bug is hidden in argument ParserScanRecord c2956h or in C2983b.typeFromUUIDSlist or in listOfUuids. | |
//Looks like in ParserScanRecord there is incorrect parser method | |
if (BaseSensor != null) { | |
String b = c2956h.getDeviceName(); | |
BaseSensor.m18131e(bluetoothDevice.getAddress()); | |
if (b != null) { | |
BaseSensor.m18125c(b); | |
} | |
if (i != 0) { | |
BaseSensor.m18123c(i); | |
} | |
BaseSensor.m18146s(); | |
} | |
} | |
return BaseSensor; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment