P0504 – Brake Switch A/B Correlation
The brake pedal switch has two contacts – A usually for the brake lights, B for cruise control and brake information – working in opposite sense, so the module expects opposite states on every brake application. P0504 means they disagree. The signal is used for cruise control cut-off, brake override with electronic throttle, the shift interlock and start-stop. Ford sets it only after more than 25 (petrol) or 40 (diesel) disagreeing brake applications, with the wrench lamp instead of the warning lamp; a NHTSA investigation covers Hyundai brake light switches.
Possible causes
- Brake light switch faulty (burnt or corroded contact)
- Switch misadjusted or retaining clip or stop pad worn
- Wire, connector or brake light fuse faulty
- Moisture in fuse or junction boxes
Possible symptoms
- Cruise control cannot be switched on
- Brake lights stay on or do not come on
- Selector lever cannot be moved out of P
- Wrench or ESC lamp on
Diagnosis
Use a compatible scan tool to confirm the code and check related codes and live data. Inspect the relevant wiring, connectors, power, ground and sensor signals using the vehicle manufacturer’s wiring diagram and service specifications. Do not replace a component based on the code alone.
Related DTC codes
Search this code in DTC Search
Generic OBD-II reference only. Manufacturer-specific definitions, test values and repair procedures can vary by vehicle. Verify with vehicle-specific service information.