Skip to content

Commit

Permalink
tomato: sensor: Change MPU6880 input path
Browse files Browse the repository at this point in the history
Change-Id: I762c4a9eba01edc76fb304443ed431ff317e3837
Signed-off-by: Meninblack007 <[email protected]>
  • Loading branch information
Meninblack007 authored and Gerrit Code Review committed May 8, 2016
1 parent 092151f commit b56545e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions sensors/Accelerometer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
#define CONVERT_ACCEL_Z -ACCEL_CONVERT

#define ACCEL_SENSOR_NAME "mpu6880"
#define ACCEL_SYSFS_PATH "/sys/class/input/input1/"
#define ACCEL_SYSFS_PATH "/sys/class/input/input0/"
#define ACCEL_ENABLE "accel_enable"
#define ACCEL_DELAY "accel_delay"
#define ACCEL_DELAY "accel_delay"

#define SMOOTHING_FACTOR 0.8

Expand Down
6 changes: 3 additions & 3 deletions sensors/Gyroscope.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include "sensors.h"

#define GYRO_INPUT_DEV_NAME "mpu6880"
#define GYRO_SYSFS_PATH "/sys/class/input/input1/"
#define GYRO_ENABLE "gyro_enable"
#define GYRO_DELAY "gyro_delay"
#define GYRO_SYSFS_PATH "/sys/class/input/input0/"
#define GYRO_ENABLE "gyro_enable"
#define GYRO_DELAY "gyro_delay"

#define FETCH_FULL_EVENT_BEFORE_RETURN 1
#define IGNORE_EVENT_TIME 350000000
Expand Down

0 comments on commit b56545e

Please sign in to comment.