• Personally I'd look at readCompass - putting a getTime() at the start, and one at the end, and comparing.

    If an interval gets delayed, it'll be because some other bit (or bits) of JavaScript is taking a long time to execute.

    If it's getting slower over time, is it possible you're not doing a clearInterval(..) for your intervalRefSec = setInterval(readCompass, 200);?

About

Avatar for Gordon @Gordon started