본문 바로가기
실전 임베디드

nRF51822 How to make not sleep 실전 임베디드 2017. 3. 24. 16:3

by BABEL-II 2019. 9. 24.

180초인가 지나면 잠이 든다.

이걸 막는다 ㅋㅋㅋ

 

위치는 main.c

 

static void sleep_mode_enter(void)
{
/*dschae, make do not sleep!!    uint32_t err_code = bsp_indication_set(BSP_INDICATE_IDLE);
    APP_ERROR_CHECK(err_code);

    // Prepare wakeup buttons.
    err_code = bsp_btn_ble_sleep_mode_prepare();
    APP_ERROR_CHECK(err_code);

    // Go to system-off mode (this function will not return; wakeup will cause a reset).
    err_code = sd_power_system_off();
    APP_ERROR_CHECK(err_code);
*/
}

 

이렇게 하면 파워 오프를 하지 않을 뿐이다. 역시나 잠이 든다.

따라서...

 

어떻게 했는지 기억이 안 나요 크흑!!