Maybe it's not quite right place to seek help but people here seem to be experienced and helpful so I'll just give it a shot.
I'm using a quadrature encoder in my latest development and in certain block of code it causes trouble. I did fair bit of troubleshooting and now I'm stuck in dead end cause I can't think what else I can do.
Here's what happens:
After press of a button pic goes into subroutine containing infinite loop in which certain value can be increased/decreased by turning encoder(desired behaviour) . while turning encoder, code randomly exits infinite loop, even tho there is no condition for it to happen, and caries on executing main program. It happens randomly. Sometimes even after single encoder step.
I might be wrong but it's not down to denouncing, besides it won't matter in this case.
I'll try to answer any questions as best as I can and post code on request.
Any help greatly appreciated.