diff options
author | Frank Gevaerts <frank@gevaerts.be> | 2008-09-16 16:47:13 +0000 |
---|---|---|
committer | Frank Gevaerts <frank@gevaerts.be> | 2008-09-16 16:47:13 +0000 |
commit | 95bc9fd59682ea499adab4bf85cece255f3ba2db (patch) | |
tree | ab54a274dc8660e6c37e4da32e559183c26f8c9f | |
parent | f08eed6ec5204a48d2724770e470e5382caf4c05 (diff) | |
download | rockbox-95bc9fd59682ea499adab4bf85cece255f3ba2db.tar.gz rockbox-95bc9fd59682ea499adab4bf85cece255f3ba2db.zip |
fix off-by-one error when reading spi data
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@18530 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/drivers/qt1106.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/drivers/qt1106.c b/firmware/drivers/qt1106.c index 2148d702e1..0e5613db16 100644 --- a/firmware/drivers/qt1106.c +++ b/firmware/drivers/qt1106.c | |||
@@ -94,8 +94,8 @@ unsigned int qt1106_io(unsigned int output) | |||
94 | 94 | ||
95 | SETCLK(); | 95 | SETCLK(); |
96 | 96 | ||
97 | input |= MISO; | ||
98 | input <<= 1; | 97 | input <<= 1; |
98 | input |= MISO; | ||
99 | 99 | ||
100 | delay(20); // >> 6.7 us | 100 | delay(20); // >> 6.7 us |
101 | } | 101 | } |