mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Mount: Conditionally define serial_instance
to fix unused variable compile error
- Wrapped the definition of `serial_instance` with preprocessor directives to ensure it is only defined when necessary. - This resolves the compile error caused by the unused variable when no features requiring `serial_instance` are enabled.
This commit is contained in:
parent
4904c718a5
commit
25a406e633
@ -184,6 +184,8 @@ void AP_Mount::init()
|
|||||||
set_mode_to_default(instance);
|
set_mode_to_default(instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
(void)serial_instance;
|
||||||
}
|
}
|
||||||
|
|
||||||
// update - give mount opportunity to update servos. should be called at 10hz or higher
|
// update - give mount opportunity to update servos. should be called at 10hz or higher
|
||||||
|
Loading…
Reference in New Issue
Block a user