Fixed in commit https://github.com/richtr/deviceorientation/commit/df7e00836af448353eba63308362411354c21785#diff-f334c86bcb1e07717621c2fafb3b679eR4.