From c3285ea5233fc3dea6466dba56d8e384d4e831c2 Mon Sep 17 00:00:00 2001 From: "Lay, Kuan Loon" Date: Thu, 21 Apr 2016 18:31:51 +0800 Subject: [PATCH] kxcjk1013: code cleanup and update sensor description Code cleanup and proper close iio device in destructor. KXCJK-1013 is tri-axis accelerometer from Kionix. This sensor can measure acceleration in metre per second squared or in G-forces. The library provided is libupm-kxcjk1013.so.0.4.0. The example provided is kxcjk1013-example where it will print x,y,z axis when trigger buffer data is ready. Signed-off-by: Lay, Kuan Loon --- src/kxcjk1013/kxcjk1013.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/kxcjk1013/kxcjk1013.cxx b/src/kxcjk1013/kxcjk1013.cxx index 8941ca62..d3e641a6 100755 --- a/src/kxcjk1013/kxcjk1013.cxx +++ b/src/kxcjk1013/kxcjk1013.cxx @@ -30,6 +30,8 @@ #define NUMBER_OF_BITS_IN_BYTE 8 +#define NUMBER_OF_BITS_IN_BYTE 8 + using namespace upm; KXCJK1013::KXCJK1013(int device)