Skip to content

Commit

Permalink
Apply comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jepenven-silabs committed Jan 13, 2023
1 parent 7c039b2 commit dc8ccce
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1902,14 +1902,14 @@ CHIP_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::_RequestSEDActiv
return err;
}

ChipLogError(DeviceLayer, "Failed to postponed Idle Mode with error %s", ErrorStr(err));
ChipLogError(DeviceLayer, "Failed to postponed Idle Mode with error %" CHIP_ERROR_FORMAT, err.Format());
}

return SEDChangeMode();
}

template <class ImplClass>
CHIP_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::SEDChangeMode(void)
CHIP_ERROR GenericThreadStackManagerImpl_OpenThread<ImplClass>::SEDChangeMode()
{
CHIP_ERROR err = CHIP_NO_ERROR;
ConnectivityManager::SEDIntervalMode mode;
Expand All @@ -1926,10 +1926,9 @@ template <class ImplClass>
void GenericThreadStackManagerImpl_OpenThread<ImplClass>::RequestSEDModeChange(chip::System::Layer * apSystemLayer,
void * apAppState)
{

if (apAppState != nullptr)
{
((GenericThreadStackManagerImpl_OpenThread *) apAppState)->SEDChangeMode();
static_cast<GenericThreadStackManagerImpl_OpenThread *>(apAppState)->SEDChangeMode();
}
}
#endif
Expand Down

0 comments on commit dc8ccce

Please sign in to comment.