When the PCM detects a short to ground in the HO2S (S1) heater control circuit, the PCM sets DTC P0031.