PRINTFUNC(DLOG_DEBUG, "POWER Unlock");
VoiceData *voicedata = (VoiceData *) data;
- device_power_release_lock(POWER_LOCK_DISPLAY);
+ int ret = device_power_release_lock(POWER_LOCK_DISPLAY);
+ if (ret != DEVICE_ERROR_NONE)
+ LOGW("Failed to release power(Display) (%d)", ret);
+
voicedata->power_unlock_timer = NULL;
return ECORE_CALLBACK_CANCEL;
void powerUnlock()
{
PRINTFUNC(DLOG_DEBUG, "POWER Unlock directly.");
- device_power_release_lock(POWER_LOCK_DISPLAY);
+ int ret = device_power_release_lock(POWER_LOCK_DISPLAY);
+ if (ret != DEVICE_ERROR_NONE)
+ LOGW("Failed to release power(Display) (%d)", ret);
}
void powerLock(void *data, bool enable)