examples/sensorbd_demo: fix spi example
authorJunhwan Park <junhwan.park@samsung.com>
Fri, 14 Apr 2017 05:06:42 +0000 (14:06 +0900)
committerHeesub Shin <heesub.shin@samsung.com>
Tue, 18 Apr 2017 03:02:22 +0000 (12:02 +0900)
Fix spi examples on sensor board.

Change-Id: I6d89f63ab9975e3b208ffab86e883c929b115a54
Signed-off-by: Junhwan Park <junhwan.park@samsung.com>
apps/examples/sensorbd_demo/examples/spi_k6ds3.c

index 45e5ff0..5a813fd 100644 (file)
@@ -161,7 +161,7 @@ void k6ds3_main(int argc, char *argv[])
 
                gx = (gxl | (gxh << 8));
                gy = (gyl | (gyh << 8));
-               gy = (gyl | (gyh << 8));
+               gz = (gzl | (gzh << 8));
 
                printf("ACCEL:x(0x%04X) y(0x%04X) z(0x%04X) GYRO:x(0x%04X) y(0x%04X) z(0x%04X)\n",
                        ax, ay, az, gx, gy, gz);