Air conditioning cheers up suddenly

Hello, yesterday at 32° in the shade my air conditioner decided to switch to max. heat power…. the seats still cool (so should the compressor etc. be ok) someone knows the error and has relevant instructions ? mgf norman