summaryrefslogtreecommitdiff
path: root/include/motion_sense.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/motion_sense.h')
-rw-r--r--include/motion_sense.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/motion_sense.h b/include/motion_sense.h
index ed24f232fd..aa4170b722 100644
--- a/include/motion_sense.h
+++ b/include/motion_sense.h
@@ -187,6 +187,11 @@ void motion_sense_fifo_add_unit(struct ec_response_motion_sensor_data *data,
#endif
#ifdef CONFIG_ALS_LIGHTBAR_DIMMING
+#ifdef TEST_BUILD
+#define MOTION_SENSE_LUX 0
+#else
#define MOTION_SENSE_LUX motion_sensors[CONFIG_ALS_LIGHTBAR_DIMMING].raw_xyz[0]
#endif
+#endif
+
#endif /* __CROS_EC_MOTION_SENSE_H */