mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-02-17 04:46:47 +01:00
Compare commits
2 Commits
1d2404a4e6
...
b56ed974a3
Author | SHA1 | Date | |
---|---|---|---|
|
b56ed974a3 | ||
|
b5bd4da9b1 |
@ -198,7 +198,7 @@ android {
|
||||
}
|
||||
|
||||
dependencies {
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.2'
|
||||
coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:2.1.3'
|
||||
|
||||
implementation 'androidx.constraintlayout:constraintlayout:2.2.0'
|
||||
implementation "androidx.camera:camera-core:1.4.0"
|
||||
|
@ -105,7 +105,11 @@ public class XiaomiSppProtocolV2 extends AbstractXiaomiSppProtocol {
|
||||
break;
|
||||
case PACKET_TYPE_DATA:
|
||||
XiaomiSppPacketV2.DataPacket dataPacket = (XiaomiSppPacketV2.DataPacket) decodedPacket;
|
||||
support.onPacketReceived(dataPacket.getChannel(), dataPacket.getPayloadBytes(support.getAuthService()));
|
||||
try {
|
||||
support.onPacketReceived(dataPacket.getChannel(), dataPacket.getPayloadBytes(support.getAuthService()));
|
||||
} catch (final Exception ex) {
|
||||
LOG.error("Exception while handling received packet", ex);
|
||||
}
|
||||
// TODO: only directly ack protobuf packets, bulk ack others
|
||||
sendAck(decodedPacket.getSequenceNumber());
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user