SF0X: use shorter perf names

This commit is contained in:
Lorenz Meier
2016-03-28 13:05:07 +02:00
parent 6e34e0acaf
commit c7cc563832
+2 -2
View File
@@ -203,8 +203,8 @@ SF0X::SF0X(const char *port) :
_distance_sensor_topic(nullptr),
_consecutive_fail_count(0),
_sample_perf(perf_alloc(PC_ELAPSED, "sf0x_read")),
_comms_errors(perf_alloc(PC_COUNT, "sf0x_comms_errors")),
_buffer_overflows(perf_alloc(PC_COUNT, "sf0x_buffer_overflows"))
_comms_errors(perf_alloc(PC_COUNT, "sf0x_com_err")),
_buffer_overflows(perf_alloc(PC_COUNT, "sf0x_buf_of"))
{
/* store port name */
strncpy(_port, port, sizeof(_port));