summaryrefslogtreecommitdiff
path: root/common/body_detection.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/body_detection.c')
-rw-r--r--common/body_detection.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/body_detection.c b/common/body_detection.c
index 848c4f08c1..e6b842ddf1 100644
--- a/common/body_detection.c
+++ b/common/body_detection.c
@@ -113,6 +113,11 @@ void body_detect_change_state(enum body_detect_states state, bool spoof)
/* reset time counting of stationary */
stationary_timeframe = 0;
}
+
+#ifdef CONFIG_BODY_DETECTION_NOTIFY_MODE_CHANGE
+ host_set_single_event(EC_HOST_EVENT_MODE_CHANGE);
+#endif
+
/* state changing log */
CPRINTS("body_detect changed state to: %s body",
motion_state ? "on" : "off");