Cellular fix in 3GPP power saving logic.
Correction to the logic in the internal function uCellPrivateSetDeepSleepState() - add a !
@@ -987,7 +987,7 @@ void uCellPrivateSetDeepSleepState(uCellPrivateInstance_t *pInstance)
// deep sleep URC was received), then we don't need to do anything.
if ((pInstance->deepSleepState != U_CELL_PRIVATE_DEEP_SLEEP_STATE_ASLEEP) &&
(pInstance->deepSleepState != U_CELL_PRIVATE_DEEP_SLEEP_STATE_PROTOCOL_STACK_ASLEEP)) {
- if (U_CELL_PRIVATE_HAS(pInstance->pModule,
+ if (!U_CELL_PRIVATE_HAS(pInstance->pModule,
U_CELL_PRIVATE_FEATURE_3GPP_POWER_SAVING)) {
// If 3GPP power saving is not supported then deep sleep is plainly unavailable
pInstance->deepSleepState = U_CELL_PRIVATE_DEEP_SLEEP_STATE_UNAVAILABLE;
