summaryrefslogtreecommitdiff
path: root/libopie2/opiecore
Side-by-side diff
Diffstat (limited to 'libopie2/opiecore') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie2/opiecore/device/odevice_ramses.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/libopie2/opiecore/device/odevice_ramses.cpp b/libopie2/opiecore/device/odevice_ramses.cpp
index c75ea3a..a060695 100644
--- a/libopie2/opiecore/device/odevice_ramses.cpp
+++ b/libopie2/opiecore/device/odevice_ramses.cpp
@@ -101,14 +101,12 @@ void Ramses::playAlarmSound()
static Sound snd ( "alarm" );
if(!snd.isFinished())
return;
changeMixerForAlarm( 0, "/dev/sound/mixer" , &snd);
snd.play();
-#else
-#error QT_NO_SOUND defined
#endif
}
bool Ramses::suspend()
{
@@ -121,13 +119,13 @@ bool Ramses::suspend()
int fd;
if ((fd = ::open("/proc/sys/pm/suspend", O_WRONLY)) >= 0) {
char writeCommand[] = "1\n";
::write(fd, writeCommand, sizeof(writeCommand) );
::close(fd);
}
-
+
::usleep ( 200 * 1000 );
return true;
}
bool Ramses::setDisplayBrightness(int bright)