CAF Click Detector events too slow (latency)

Hi, 

I have been testing the CAF click detector module and I find that any event callback after the click event takes almost 1000ms. That is the time between the actual click and the event trigger in the configured module seems too long. 

I've played around with the timeout configs but the events still seem to take too long. 

Is there a way to make it more responsive without implementing a custom solution? 

Parents Reply
  • Specifically this condition


    if ((is_pressed != was_pressed)
    && (is_pressed == is_raw_pressed)
    && (evt_limit < CONFIG_CAF_BUTTONS_EVENT_LIMIT))
    {
    }



    (is_pressed != was_pressed) this condition takes about 20-100 scans to evaluate to true. With the scan interval set to 2ms, is this amount of settling time normal ? I'm guessing this delay depends on what kind of debouncing we have on the hardware side as well ? 


Children
Related