mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Huami: Prevent activity data fetch if there is no data to fetch
More information in #3201 Fixes #3196
This commit is contained in:
+1
-1
@@ -197,7 +197,7 @@ public abstract class AbstractFetchOperation extends AbstractHuamiOperation {
|
||||
if (expectedDataLength == 0 && isHuami2021) {
|
||||
// Nothing to receive, if we try to fetch data it will fail
|
||||
sendAck2021(true);
|
||||
} else {
|
||||
} else if (expectedDataLength != 0) {
|
||||
TransactionBuilder newBuilder = createTransactionBuilder(taskName + " Step 2");
|
||||
newBuilder.notify(characteristicActivityData, true);
|
||||
newBuilder.write(characteristicFetch, new byte[]{HuamiService.COMMAND_FETCH_DATA});
|
||||
|
||||
Reference in New Issue
Block a user