Small cleanup
This commit is contained in:
parent
94edaa0cc1
commit
d2053b32bf
|
@ -830,7 +830,7 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport {
|
||||||
return syncHelper.processVersion(data);
|
return syncHelper.processVersion(data);
|
||||||
|
|
||||||
case HPlusConstants.DATA_STATS:
|
case HPlusConstants.DATA_STATS:
|
||||||
Boolean result = syncHelper.processRealtimeStats(data);
|
boolean result = syncHelper.processRealtimeStats(data);
|
||||||
if (result) {
|
if (result) {
|
||||||
processExtraInfo (data);
|
processExtraInfo (data);
|
||||||
}
|
}
|
||||||
|
@ -853,10 +853,8 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void processExtraInfo (byte[] data) {
|
private void processExtraInfo (byte[] data) {
|
||||||
HPlusDataRecordRealtime record;
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
record = new HPlusDataRecordRealtime(data);
|
HPlusDataRecordRealtime record = new HPlusDataRecordRealtime(data);
|
||||||
|
|
||||||
handleBatteryInfo(record.battery);
|
handleBatteryInfo(record.battery);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue