Skip to content

Commit

Permalink
Working touch coordinates (stop forgetting about endianness!)
Browse files Browse the repository at this point in the history
  • Loading branch information
lazd committed Jan 5, 2020
1 parent c516ae5 commit 678ac99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion VoodooI2CGoodix/VoodooI2CGoodixTouchDriver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ IOReturn VoodooI2CGoodixTouchDriver::goodix_read_reg(UInt16 reg, UInt8* values,
/* Adapted from the TFE Driver */
IOReturn VoodooI2CGoodixTouchDriver::goodix_write_reg(UInt16 reg, UInt8 value) {
UInt16 buffer[] {
reg,
OSSwapHostToBigInt16(reg),
value
};
IOReturn retVal = kIOReturnSuccess;
Expand Down

0 comments on commit 678ac99

Please sign in to comment.