Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
DejinChen authored Jun 25, 2024
1 parent 35ba199 commit 3ef63fc
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,9 @@ CHIP_ERROR GenericThreadDriver::BackupConfiguration()

void GenericThreadDriver::CheckInterfaceEnabled()
{
bool enabled = GetEnabled();
ChipLogProgress(DeviceLayer, "OpenThread InterfaceEnabled: %d", enabled);
#if !CHIP_DEVICE_CONFIG_ENABLE_THREAD_AUTOSTART
// If the Thread interface is enabled and stack has been provisioned, but is not currently enabled, enable it now.
if (enabled && ThreadStackMgrImpl().IsThreadProvisioned() && !ThreadStackMgrImpl().IsThreadEnabled())
if (GetEnabled() && ThreadStackMgrImpl().IsThreadProvisioned() && !ThreadStackMgrImpl().IsThreadEnabled())
{
ReturnOnFailure(ThreadStackMgrImpl().SetThreadEnabled(true));
ChipLogProgress(DeviceLayer, "OpenThread ifconfig up and thread start");
Expand Down

0 comments on commit 3ef63fc

Please sign in to comment.