File tree 1 file changed +3
-6
lines changed
src/platform/silabs/wifi/icd
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,11 @@ namespace {
33
33
*/
34
34
CHIP_ERROR ConfigureLIBasedSleep ()
35
35
{
36
- VerifyOrReturnError (ConfigureBroadcastFilter (true ) == SL_STATUS_OK, CHIP_ERROR_INTERNAL,
37
- ChipLogError (DeviceLayer, " Failed to configure broadcasts filter." ));
36
+ ReturnLogErrorOnFailure (ConfigureBroadcastFilter (true ));
38
37
39
38
// Allowing the device to go to sleep must be the last actions to avoid configuration failures.
40
- VerifyOrReturnError (ConfigurePowerSave (RSI_SLEEP_MODE_2, ASSOCIATED_POWER_SAVE,
41
- chip::ICDConfigurationData::GetInstance ().GetSlowPollingInterval ().count ()) ==
42
- SL_STATUS_OK,
43
- CHIP_ERROR_INTERNAL, ChipLogError (DeviceLayer, " Failed to enable LI based sleep." ));
39
+ ReturnLogErrorOnFailure (ConfigurePowerSave (RSI_SLEEP_MODE_2, ASSOCIATED_POWER_SAVE,
40
+ chip::ICDConfigurationData::GetInstance ().GetSlowPollingInterval ().count ()));
44
41
45
42
return CHIP_NO_ERROR;
46
43
}
You can’t perform that action at this time.
0 commit comments