mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-27 10:50:41 +00:00
commit
854a74f140
@ -70,6 +70,7 @@ typedef uint32_t LnnHeartbeatType;
|
||||
#define HEARTBEAT_TYPE_BLE_V3 (0x1L << 4)
|
||||
#define HEARTBEAT_TYPE_BLE_V4 (0x1L << 5) // for heartbeat to lowpower
|
||||
#define HEARTBEAT_TYPE_MAX (0x1L << 6)
|
||||
#define HEARTBEAT_TYPE_INVALID 0xFFFF
|
||||
|
||||
#define NORMAL_STRATEGY 1
|
||||
#define HIGH_PERFORMANCE_STRATEGY 2
|
||||
|
@ -381,7 +381,7 @@ void LnnRemoveSendEndMsg(LnnHeartbeatFsm *hbFsm, LnnHeartbeatType type, bool wak
|
||||
|
||||
*isRemoved = true;
|
||||
LnnRemoveSendEndMsgPara msgPara = {
|
||||
.hbType = type & (~HEARTBEAT_TYPE_BLE_V3),
|
||||
.hbType = type & (LnnIsLocalSupportBurstFeature() ? HEARTBEAT_TYPE_INVALID : ~HEARTBEAT_TYPE_BLE_V3),
|
||||
.wakeupFlag = wakeupFlag,
|
||||
.isRelay = isRelay,
|
||||
.isRemoved = isRemoved,
|
||||
|
Loading…
Reference in New Issue
Block a user