Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
AP_RPM: Fix to SITL RPM driver instance #12909
This PR resolves this #issue:
I believe that because the nullptr check was added:
It prevented the pointer to the SITL driver from being created as the RPM pin driver was already created. Added ifdef statement to prevent the RPM_pin drivers from being allocated when using SITL.
I have tested this fix in SITL. I have not tested on a board.