mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
igpsport: Fix double parsing of protobuf packets,fix typo in 02 packets parsing
This commit is contained in:
committed by
José Rebelo
parent
a404586ef5
commit
046c019bb5
+1
-2
@@ -276,7 +276,6 @@ public class IGPSportDeviceSupport extends AbstractBTLEDeviceSupport {
|
||||
parseProtobufPacket(finalData);
|
||||
partialPacketInProgress=false;
|
||||
partialBuffer.clear();
|
||||
parseProtobufPacket(finalData);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -317,7 +316,7 @@ public class IGPSportDeviceSupport extends AbstractBTLEDeviceSupport {
|
||||
|
||||
// 02-header -- results of operations from device
|
||||
//0215FFFF03FFFF00FFFFFFFFFFFFFFFFFFFFFF55
|
||||
if (value[0] == (byte) 0x03) {
|
||||
if (value[0] == (byte) 0x02) {
|
||||
byte result = value[7];
|
||||
switch (mainService) {
|
||||
case Common.service_type_index.enum_SERVICE_TYPE_INDEX_FILE_OPERATION_VALUE:
|
||||
|
||||
Reference in New Issue
Block a user