App not flipping

I have set my app to landscape mode but and it prevents it from changing to portrait mode. But now it wont flip when I turn the device up upside down. How do I fix this.