mirror of
https://gitee.com/openharmony/communication_dsoftbus
synced 2024-11-27 19:00:38 +00:00
!7790 bug:update oobe state change
Merge pull request !7790 from 宋晨曦/master
This commit is contained in:
commit
ab797254aa
@ -754,22 +754,28 @@ static void HbOOBEStateEventHandler(const LnnEventBasicInfo *info)
|
||||
}
|
||||
const LnnMonitorHbStateChangedEvent *event = (const LnnMonitorHbStateChangedEvent *)info;
|
||||
SoftBusOOBEState state = (SoftBusOOBEState)event->status;
|
||||
LNN_LOGI(
|
||||
LNN_HEART_BEAT, "HB handle oobe state=%{public}d, g_state=%{public}d", state, g_hbConditionState.OOBEState);
|
||||
switch (state) {
|
||||
case SOFTBUS_OOBE_RUNNING:
|
||||
LNN_LOGI(LNN_HEART_BEAT, "HB handle SOFTBUS_OOBE_RUNNING");
|
||||
g_hbConditionState.OOBEState = state;
|
||||
HbConditionChanged(false);
|
||||
if (g_hbConditionState.OOBEState != SOFTBUS_FACK_OOBE_END) {
|
||||
g_hbConditionState.OOBEState = state;
|
||||
HbConditionChanged(false);
|
||||
}
|
||||
break;
|
||||
case SOFTBUS_OOBE_END:
|
||||
__attribute__((fallthrough));
|
||||
case SOFTBUS_FACK_OOBE_END:
|
||||
LNN_LOGI(LNN_HEART_BEAT, "HB handle oobe state=%{public}d", state);
|
||||
if (g_hbConditionState.OOBEState != SOFTBUS_OOBE_END &&
|
||||
g_hbConditionState.OOBEState != SOFTBUS_FACK_OOBE_END) {
|
||||
g_hbConditionState.OOBEState = state;
|
||||
HbConditionChanged(false);
|
||||
}
|
||||
break;
|
||||
case SOFTBUS_OOBE_END:
|
||||
if (g_hbConditionState.OOBEState != SOFTBUS_OOBE_END) {
|
||||
g_hbConditionState.OOBEState = state;
|
||||
HbConditionChanged(false);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user