Skip to content

Commit 678ac99

Browse files
committed
Working touch coordinates (stop forgetting about endianness!)
1 parent c516ae5 commit 678ac99

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

VoodooI2CGoodix/VoodooI2CGoodixTouchDriver.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ IOReturn VoodooI2CGoodixTouchDriver::goodix_read_reg(UInt16 reg, UInt8* values,
437437
/* Adapted from the TFE Driver */
438438
IOReturn VoodooI2CGoodixTouchDriver::goodix_write_reg(UInt16 reg, UInt8 value) {
439439
UInt16 buffer[] {
440-
reg,
440+
OSSwapHostToBigInt16(reg),
441441
value
442442
};
443443
IOReturn retVal = kIOReturnSuccess;

0 commit comments

Comments
 (0)