author | mickeyl <mickeyl> | 2003-05-19 21:22:16 (UTC) |
---|---|---|
committer | mickeyl <mickeyl> | 2003-05-19 21:22:16 (UTC) |
commit | 71b023064e90282346055f0fea37d9a0d84bfa1b (patch) (side-by-side diff) | |
tree | ad82d6360ff7ef04aed5309e59e80729fcadd2a7 | |
parent | e1435cdf8522e2a932533390b72f39edfe39a24c (diff) | |
download | opie-71b023064e90282346055f0fea37d9a0d84bfa1b.zip opie-71b023064e90282346055f0fea37d9a0d84bfa1b.tar.gz opie-71b023064e90282346055f0fea37d9a0d84bfa1b.tar.bz2 |
SIMpad specific fix
-rw-r--r-- | libopie/odevice.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 921a94e..103104f 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp @@ -294,17 +294,17 @@ ODevice *ODevice::inst ( ) { static ODevice *dev = 0; if ( !dev ) { if ( QFile::exists ( "/proc/hal/model" )) dev = new iPAQ ( ); else if ( QFile::exists ( "/dev/sharp_buz" ) || QFile::exists ( "/dev/sharp_led" )) dev = new Zaurus ( ); - else if ( QFile::exists ( "/proc/ucb1x00" ) && QFile::exists ( "/proc/CS3" )) + else if ( QFile::exists ( "/proc/ucb1x00" ) && QFile::exists ( "/proc/cs3" )) dev = new SIMpad ( ); else dev = new ODevice ( ); dev-> init ( ); } return dev; } @@ -1570,17 +1570,17 @@ void SIMpad::initButtons ( ) } reloadButtonMapping ( ); QCopChannel *sysch = new QCopChannel ( "QPE/System", this ); connect ( sysch, SIGNAL( received( const QCString &, const QByteArray & )), this, SLOT( systemMessage ( const QCString &, const QByteArray & ))); } // SIMpad boardcontrol register CS3 -#define SIMPAD_BOARDCONTROL "/proc/CS3" +#define SIMPAD_BOARDCONTROL "/proc/cs3" #define SIMPAD_VCC_5V_EN 0x0001 // For 5V PCMCIA #define SIMPAD_VCC_3V_EN 0x0002 // FOR 3.3V PCMCIA #define SIMPAD_EN1 0x0004 // This is only for EPROM's #define SIMPAD_EN0 0x0008 // Both should be enable for 3.3V or 5V #define SIMPAD_DISPLAY_ON 0x0010 #define SIMPAD_PCMCIA_BUFF_DIS 0x0020 #define SIMPAD_MQ_RESET 0x0040 #define SIMPAD_PCMCIA_RESET 0x0080 @@ -1645,19 +1645,19 @@ bool SIMpad::setLedState ( OLed l, OLedState st ) case Led_Off : leds. OffOnBlink = 0; break; case Led_On : leds. OffOnBlink = 1; break; case Led_BlinkSlow: leds. OnTime = 10; leds. OffTime = 10; break; case Led_BlinkFast: leds. OnTime = 5; leds. OffTime = 5; break; } { /*TODO Implement this like that: - read from CS3 + read from cs3 && with SIMPAD_LED2_ON - write to CS3 */ + write to cs3 */ m_leds [0] = st; return true; } } } return false; } |