drivers: sensor: qdec_nrfx: Revert spurious samplerdy evt workaround

Underlying nrfx driver was modified so now it forwards the event
to the user callback only if it was enabled.

Signed-off-by: Nikodem Kastelik <nikodem.kastelik@nordicsemi.no>
This commit is contained in:
Nikodem Kastelik 2023-10-03 16:52:55 +02:00 committed by Carles Cufí
parent f4fcc1dc4c
commit 6a315a4b17

View file

@ -135,13 +135,6 @@ static void qdec_nrfx_event_handler(nrfx_qdec_event_t event, void *p_context)
unsigned int key; unsigned int key;
switch (event.type) { switch (event.type) {
case NRF_QDEC_EVENT_SAMPLERDY:
/* The underlying HAL driver may improperly forward an samplerdy event even if it's
* disabled in the configuration. Ignore the event to prevent error logs until the
* issue is fixed in HAL.
*/
break;
case NRF_QDEC_EVENT_REPORTRDY: case NRF_QDEC_EVENT_REPORTRDY:
accumulate(dev_data, event.data.report.acc); accumulate(dev_data, event.data.report.acc);