This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CSense Example

Hello,

I don't know why when the code achieve the 

nrf_csense_add(&m_button);

the program hold out.

Thanks in advance.

Parents Reply
  • Hi,

    I need comment this part of the code:

    void csense_start(void){
    ret_code_t err_code;

    static uint16_t touched_counter = 0;

    err_code = nrf_csense_init(nrf_csense_handler, APP_TIMER_TICKS_TIMEOUT);
    APP_ERROR_CHECK(err_code);


    nrf_csense_instance_context_set(&m_button, (void*)&touched_counter);

    //err_code = nrf_csense_add(&m_button);
    //APP_ERROR_CHECK(err_code);

    }

    because this part holds out the program.

Children
Related