replace unnecessary perf_alloc_once usage

This commit is contained in:
Daniel Agar
2019-11-30 19:56:54 -05:00
parent cceec434f2
commit 97c6a28a70
4 changed files with 6 additions and 7 deletions
+3 -3
View File
@@ -215,9 +215,9 @@ private:
simulator::Report<simulator::RawGPSData> _gps{1};
perf_counter_t _perf_gps{perf_alloc_once(PC_ELAPSED, "sim_gps_delay")};
perf_counter_t _perf_sim_delay{perf_alloc_once(PC_ELAPSED, "sim_network_delay")};
perf_counter_t _perf_sim_interval{perf_alloc(PC_INTERVAL, "sim_network_interval")};
perf_counter_t _perf_gps{perf_alloc(PC_ELAPSED, MODULE_NAME": gps delay")};
perf_counter_t _perf_sim_delay{perf_alloc(PC_ELAPSED, MODULE_NAME": network delay")};
perf_counter_t _perf_sim_interval{perf_alloc(PC_INTERVAL, MODULE_NAME": network interval")};
// uORB publisher handlers
uORB::Publication<battery_status_s> _battery_pub{ORB_ID(battery_status)};