summaryrefslogtreecommitdiff
authorchicken <chicken>2004-11-05 10:34:02 (UTC)
committer chicken <chicken>2004-11-05 10:34:02 (UTC)
commitaea18d994988507f6153552698cbb67054715a92 (patch) (unidiff)
tree704b7ec91f59e432910343a6d3efc73b90fae613
parent586ba5bb2842d80911ea22bf47eaa2f1b39362e1 (diff)
downloadopie-aea18d994988507f6153552698cbb67054715a92.zip
opie-aea18d994988507f6153552698cbb67054715a92.tar.gz
opie-aea18d994988507f6153552698cbb67054715a92.tar.bz2
correct simpad cs3 readout
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_simpad.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopie2/opiecore/device/odevice_simpad.cpp b/libopie2/opiecore/device/odevice_simpad.cpp
index 2e54216..d6c2c80 100644
--- a/libopie2/opiecore/device/odevice_simpad.cpp
+++ b/libopie2/opiecore/device/odevice_simpad.cpp
@@ -227,13 +227,13 @@ static bool setCS3Bit( bool bitset, int bit ) {
227 * Use QFile and QTextStream for parsing to be more 227 * Use QFile and QTextStream for parsing to be more
228 * robust 228 * robust
229 */ 229 */
230 while ( !stream.atEnd() ) { 230 while ( !stream.atEnd() ) {
231 QString line = stream.readLine(); 231 QString line = stream.readLine();
232 if ( line.startsWith( "Chipselect3 : " ) ) { 232 if ( line.startsWith( "Chipselect3 : " ) ) {
233 val = line.mid( 15 ).toUInt( 0, 16 ); 233 val = line.mid( 14 ).toUInt( 0, 16 );
234 ok = true; 234 ok = true;
235 break; 235 break;
236 } 236 }
237 } 237 }
238 238
239 if ( !ok ) 239 if ( !ok )