replace unnecessary perf_alloc_once usage

This commit is contained in:
Daniel Agar
2019-11-30 21:17:15 -05:00
parent cceec434f2
commit 97c6a28a70
4 changed files with 6 additions and 7 deletions
@@ -281,7 +281,7 @@ MulticopterPositionControl::MulticopterPositionControl(bool vtol) :
_vel_x_deriv(this, "VELD"),
_vel_y_deriv(this, "VELD"),
_vel_z_deriv(this, "VELD"),
_cycle_perf(perf_alloc_once(PC_ELAPSED, MODULE_NAME": cycle time"))
_cycle_perf(perf_alloc(PC_ELAPSED, MODULE_NAME": cycle time"))
{
if (vtol) {
// if vehicle is a VTOL we want to enable weathervane capabilities