1. Disconnect the negative battery cable..
2. Remove the front map light..
3. Verify that the continuity between the sunroof switch terminals is as indicated in the table.

If not as indicated in the table, replace the sunroof switch.

Sunroof Switch Removal/InstallationReporting Safety Defects (U.S.A.)
If you believe that your vehicle has a defect which could cause a crash or could
cause injury or death, you should immediately inform the National Highway Traffic
Safety Administration (NHTSA) in addition to notifying Mazda Motor Corporation (Your
Mazda Importer/Distributor).
If NHTSA receive ...
Car Navigation Unit Removal/Installation
CAUTION:
The audio unit communicates with the car-navigation unit and records the
presence/non-presence of the car-navigation unit when the ignition is switched
to ACC or ON (engine off or on) after connecting the negative battery cable.
If the commander switch is installed ...
Pressure Sensor [Two Step Deployment Control System]
Purpose
The pressure sensor determines at an earlier stage whether to detonate the
air bag on the side of the vehicle (around front door) receiving an impact.
This is for improved accuracy of the side air bag operation (deployment).
Function
When the vehicle is involved in ...