1. Remove the upper panel..
2. Disconnect the parking brake switch connector.
3. Verify that the continuity is as indicated in the table.

If not as indicated in the table, replace the parking brake lever.

Parking Brake Lever Removal/InstallationHome screen
Icon
Function
Applications
Information such as average fuel economy, maintenance, and warnings can
be verified.
Depending on the grade and specification, the screen display may
differ.
Entertainment
Operates audio such as the radio ...
Sae Standards
In accordance with new regulations, SAE (Society of Automotive Engineers)
standard names and abbreviations are now used in this manual. The table below
lists the names and abbreviations that have been used in Mazda manuals up to
now and their SAE equivalents.
...
Moonroof
The moonroof can be opened or closed
electrically only when the ignition is
switched ON.
WARNING
Do not let passengers stand up or
extend part of the body through the
open moonroof while the vehicle is
moving:
Extending the head, arms, or other
parts of the body throu ...