Noggin
Member
this sucks. If its so simple how come no one can give a straight answer.
The algorithm I gave you earlier is very close to what I do with a similar sensor. It sounds to me like your MCU just wasn't interrupting. You only posted partial code so I didn't see how I could help.
Did you enable interrupts? Did you write your interrupt routines? What is intFlag? Was it declared as volatile?