summaryrefslogtreecommitdiff
path: root/include/motion_lid.h
diff options
context:
space:
mode:
authorKevin K Wong <kevin.k.wong@intel.com>2015-11-18 23:59:42 -0800
committerchrome-bot <chrome-bot@chromium.org>2015-11-25 18:15:38 -0800
commite24ac972e21d60a65d15e957605e8b78bd25e039 (patch)
tree51044b14b8c8b7b5966d7bd774f1499f55b931ef /include/motion_lid.h
parent767e132d133b6f1216d630bd3b59e893a59bcffa (diff)
downloadchrome-ec-e24ac972e21d60a65d15e957605e8b78bd25e039.tar.gz
ectool: provide lid angle info
Added new host command to support returning lid angle. New output from ectool: System with lid angle support: ------------------------------------------ localhost ~ # ectool motionsense lid_angle Lid angle: 72 System without lid angle support: ------------------------------------------ localhost ~ # ectool motionsense lid_angle EC result 3 (INVALID_PARAM) BUG=none BRANCH=none TEST=run "ectool motionsense lid_angle" verify the value matches the physical lid angle position Change-Id: I4179172c778f643640561e819216f7adfee679d2 Signed-off-by: Kevin K Wong <kevin.k.wong@intel.com> Reviewed-on: https://chromium-review.googlesource.com/313345 Reviewed-by: Shawn N <shawnn@chromium.org>
Diffstat (limited to 'include/motion_lid.h')
-rw-r--r--include/motion_lid.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/motion_lid.h b/include/motion_lid.h
index b005688bb7..21803e6260 100644
--- a/include/motion_lid.h
+++ b/include/motion_lid.h
@@ -10,9 +10,6 @@
#include "host_command.h"
-/* Anything outside of lid angle range [-180, 180] should work. */
-#define LID_ANGLE_UNRELIABLE 500
-
/**
* This structure defines all of the data needed to specify the orientation
* of the base and lid accelerometers in order to calculate the lid angle.