diff options
Diffstat (limited to 'firmware/drivers')
-rw-r--r-- | firmware/drivers/tsc2100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/tsc2100.c b/firmware/drivers/tsc2100.c index ccb8c1f26b..18dfcb9da1 100644 --- a/firmware/drivers/tsc2100.c +++ b/firmware/drivers/tsc2100.c | |||
@@ -52,7 +52,7 @@ short tsc2100_readreg(int page, int address) | |||
52 | 52 | ||
53 | void tsc2100_writereg(int page, int address, short value) | 53 | void tsc2100_writereg(int page, int address, short value) |
54 | { | 54 | { |
55 | unsigned short command = 0x8000|(page << 11)|(address << 5); | 55 | unsigned short command = 0x0800|(page << 11)|(address << 5); |
56 | unsigned char out[4] = {command >> 8, command & 0xff, | 56 | unsigned char out[4] = {command >> 8, command & 0xff, |
57 | value >> 8, value & 0xff}; | 57 | value >> 8, value & 0xff}; |
58 | spi_block_transfer(SPI_target_TSC2100, | 58 | spi_block_transfer(SPI_target_TSC2100, |