Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 95049552 authored by rbandi's avatar rbandi
Browse files

HID: qvr: axis orientation correction



Refactoring code to avoid sensor data
being copied twice.

Change-Id: I83bbc2da7777291c1560fe00675c603b087fa0ad
Signed-off-by: default avatarrbandi <rohitbandi@codeaurora.org>
parent 653e9abc
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -305,15 +305,6 @@ static int qvr_send_package_wrap(u8 *message, int msize, struct hid_device *hid)
		data->mts = data->ats;
	data->gts = data->ats;

	data->ax = imuData.ax0;
	data->ay = imuData.ay0;
	data->az = imuData.az0;
	data->gx = imuData.gx0;
	data->gy = imuData.gy0;
	data->gz = imuData.gz0;
	data->mx = imuData.my0;
	data->my = imuData.mx0;
	data->mz = imuData.mz0;
	data->ax = imuData.ax0;
	data->ay = imuData.ay0;
	data->az = imuData.az0;