Browse Source

AP RPM: Initialise backend with _instance

* Unsure how this worked in the past
master
Will Sackfield 9 years ago committed by Andrew Tridgell
parent
commit
723e166c13
  1. 2
      libraries/AP_RPM/RPM_SITL.cpp

2
libraries/AP_RPM/RPM_SITL.cpp

@ -25,7 +25,7 @@ extern const AP_HAL::HAL& hal; @@ -25,7 +25,7 @@ extern const AP_HAL::HAL& hal;
open the sensor in constructor
*/
AP_RPM_SITL::AP_RPM_SITL(AP_RPM &_ap_rpm, uint8_t _instance, AP_RPM::RPM_State &_state) :
AP_RPM_Backend(_ap_rpm, instance, _state)
AP_RPM_Backend(_ap_rpm, _instance, _state)
{
sitl = (SITL::SITL *)AP_Param::find_object("SIM_");
instance = _instance;

Loading…
Cancel
Save