diff --git a/libraries/AP_Mount/AP_Mount.cpp b/libraries/AP_Mount/AP_Mount.cpp index f93b277406..a9de1354b7 100644 --- a/libraries/AP_Mount/AP_Mount.cpp +++ b/libraries/AP_Mount/AP_Mount.cpp @@ -62,6 +62,9 @@ void AP_Mount::init() // primary is reset to the first instantiated mount bool primary_set = false; + // keep track of number of serial instances for initialisation + uint8_t serial_instance = 0; + // create each instance for (uint8_t instance=0; instance