Fixed rotation issue

When user entered an invalid value for rotation, class did not update
internal rotation value, only sent to device.