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