fixed issue with Ascend P2/P6 (some models do not like gravity sensor)