mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-24 17:45:50 +01:00
Small cleanup
This commit is contained in:
parent
94edaa0cc1
commit
d2053b32bf
@ -830,7 +830,7 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport {
|
||||
return syncHelper.processVersion(data);
|
||||
|
||||
case HPlusConstants.DATA_STATS:
|
||||
Boolean result = syncHelper.processRealtimeStats(data);
|
||||
boolean result = syncHelper.processRealtimeStats(data);
|
||||
if (result) {
|
||||
processExtraInfo (data);
|
||||
}
|
||||
@ -853,10 +853,8 @@ public class HPlusSupport extends AbstractBTLEDeviceSupport {
|
||||
}
|
||||
|
||||
private void processExtraInfo (byte[] data) {
|
||||
HPlusDataRecordRealtime record;
|
||||
|
||||
try {
|
||||
record = new HPlusDataRecordRealtime(data);
|
||||
HPlusDataRecordRealtime record = new HPlusDataRecordRealtime(data);
|
||||
|
||||
handleBatteryInfo(record.battery);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user