Fixed in commit https://github.com/richtr/deviceorientation/commit/0a7f242c45afd13266e2fd5e7604d82ef51bd916