Hi,
I'm using the nRF52832 with SDK version 17.0.1, and I'm experiencing an issue with NFC handling.
Sometimes, the NFC interrupt triggers two FIELD_OFF or two FIELD_ON events in a row.
After investigating the code, I found that instead of being called from the interrupt handler, the FIELD_OFF event is triggered from another function. I've attached all the relevant functions for reference.
In particular, one function only triggers the FIELD_ON event, while the FIELD_OFF call appears to be disabled.
Is there a specific reason for this behavior?

In this function, I see that there's protection preventing 'filed_off' from being called without 'filed_on', and vice versa. However, in this state, we don't call 'filed_off' at all.

After debugging, we found that 'filed_off' is called from this function. There's no protection in place, and sometimes the device gets stuck while executing it.

I’d like to know if you see anything wrong with this function and how I can fix it.
Thanks,
