mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-23 16:59:54 +00:00
fix:adjust remove hb type
Signed-off-by: ma-haoyun <mahaoyun2@huawei.com>
This commit is contained in:
parent
bcf5410054
commit
4a118da40f
@ -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