summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrank Gevaerts <frank@gevaerts.be>2008-09-16 16:47:13 +0000
committerFrank Gevaerts <frank@gevaerts.be>2008-09-16 16:47:13 +0000
commit95bc9fd59682ea499adab4bf85cece255f3ba2db (patch)
treeab54a274dc8660e6c37e4da32e559183c26f8c9f
parentf08eed6ec5204a48d2724770e470e5382caf4c05 (diff)
downloadrockbox-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.c2
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)
SETCLK();
- input |= MISO;
input <<= 1;
+ input |= MISO;
delay(20); // >> 6.7 us
}