mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 02:00:35 +08:00
px4io: small change after perf_counter API change
This commit is contained in:
@@ -1256,7 +1256,7 @@ PX4IO::io_set_control_state(unsigned group)
|
||||
|
||||
if (changed) {
|
||||
orb_copy(ORB_ID(actuator_controls_0), _t_actuator_controls_0, &controls);
|
||||
perf_set(_perf_sample_latency, hrt_elapsed_time(&controls.timestamp_sample));
|
||||
perf_set_elapsed(_perf_sample_latency, hrt_elapsed_time(&controls.timestamp_sample));
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user