mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-12-27 19:15:50 +01:00
Huami 2021: Do not initialize device for chunked ack
Since we now handle chunked acks as of 74dac3f5c
, these may happen
during device initialization. We must not use performInitialized, or
initializeDevice will be called twice, since the device will still not
be in INITIALIZING state.
This commit is contained in:
parent
f58c655449
commit
76576af324
@ -2482,7 +2482,7 @@ public abstract class HuamiSupport extends AbstractBTLEDeviceSupport implements
|
||||
final byte count = huami2021ChunkedDecoder.getLastCount();
|
||||
|
||||
try {
|
||||
final TransactionBuilder builder = performInitialized("send chunked ack");
|
||||
final TransactionBuilder builder = createTransactionBuilder("send chunked ack");
|
||||
builder.write(characteristicChunked2021Read, new byte[] {0x04, 0x00, handle, 0x01, count});
|
||||
builder.queue(getQueue());
|
||||
} catch (final Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user