fix enabled to interval
Merge pull request #7467 from ntotani/fix-lua-accelerometer

fix enabled to interval