Commit 5d7051f1 authored by Mahesh Mahadevan's avatar Mahesh Mahadevan Committed by Stephanos Ioannidis
Browse files

drivers: kscan: Fix the kscan gt911 driver



Update the calculation of the row and column.
Issues were seen when running the LVGL sample.

Signed-off-by: default avatarMahesh Mahadevan <mahesh.mahadevan@nxp.com>
parent b2eeecfe
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -115,8 +115,8 @@ static int gt911_process(const struct device *dev)
	}

	pressed = (points == 1);
	row = ((pointRegs.highX) << 8U) | pointRegs.lowX;
	col = ((pointRegs.highY) << 8U) | pointRegs.lowY;
	row = ((pointRegs.highY) << 8U) | pointRegs.lowY;
	col = ((pointRegs.highX) << 8U) | pointRegs.lowX;

	LOG_DBG("pressed: %d, row: %d, col: %d", pressed, row, col);