fix:adjust remove hb type

Signed-off-by: ma-haoyun <mahaoyun2@huawei.com>
This commit is contained in:
ma-haoyun 2024-11-05 16:53:28 +08:00
parent bcf5410054
commit 4a118da40f
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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,