summaryrefslogtreecommitdiff
path: root/common/motion_sense.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/motion_sense.c')
-rw-r--r--common/motion_sense.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/motion_sense.c b/common/motion_sense.c
index 3411f7c421..442e957540 100644
--- a/common/motion_sense.c
+++ b/common/motion_sense.c
@@ -235,9 +235,15 @@ int motion_sense_set_data_rate(struct motion_sensor_t *sensor)
if (ret)
return ret;
+#ifdef CONFIG_CONSOLE_VERBOSE
CPRINTS("%s ODR: %d - roundup %d from config %d [AP %d]",
sensor->name, odr, roundup, config_id,
BASE_ODR(sensor->config[SENSOR_CONFIG_AP].odr));
+#else
+ CPRINTS("%c%d ODR %d rup %d cfg %d AP %d",
+ sensor->name[0], sensor->type, odr, roundup, config_id,
+ BASE_ODR(sensor->config[SENSOR_CONFIG_AP].odr));
+#endif
mutex_lock(&g_sensor_mutex);
if (ap_odr_mhz)
/*