nn::applet::CTR::ReplySleepQuery Function
void ReplySleepQuery(
AppletQueryReply reply
);
| Name | Description | |
|---|---|---|
| in | reply | Response. |
Replies to a sleep query.
This function sends another response after the application has returned a value of nn::applet::CTR::REPLY_LATER ("defer") in the sleep query callback set by the nn::applet::CTR::SetSleepQueryCallback function.
For the reply argument, specify either nn::applet::CTR::REPLY_ACCEPT or nn::applet::CTR::REPLY_REJECT.
Example
if ( applet::IsExpectedToReplySleepQuery() )
{
// Approve sleep
applet::ReplySleepQuery( applet::REPLY_ACCEPT );
// Wait for wakeup (for example, wait for wakeup to be signaled by the awake callback)
awakeEvent.Wait();
// LCD on
nngxStartLcdDisplay();
}
CONFIDENTIAL