A vehicle includes a brake-by-wire system having a brake pedal and a first sensor configured to output a signal indicative of a position of the brake pedal. A controller is in communication with the sensor and is programmed to enable and disable a one-pedal driving mode based on a user-selected setting. The controller is further programmed to, in response to the signal of the first sensor being valid and the one-pedal driving mode being disabled, enable the one-pedal driving mode regardless of the user-selected setting.