1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-12-24 17:45:50 +01:00

Small cleanup

This commit is contained in:
cpfeiffer 2017-04-06 23:58:50 +02:00
parent 94edaa0cc1
commit d2053b32bf

View File

@ -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);