accelerometer fix
Merge pull request #6817 from minggo/accelerometer-fix

[ci skip]accelerometer fix