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:
parent
f4fcc1dc4c
commit
6a315a4b17
|
@ -135,13 +135,6 @@ static void qdec_nrfx_event_handler(nrfx_qdec_event_t event, void *p_context)
|
|||
unsigned int key;
|
||||
|
||||
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:
|
||||
accumulate(dev_data, event.data.report.acc);
|
||||
|
||||
|
|
Loading…
Reference in a new issue