Diffstat (limited to 'core/applets/rotateapplet/rotate.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | core/applets/rotateapplet/rotate.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/applets/rotateapplet/rotate.cpp b/core/applets/rotateapplet/rotate.cpp index d8081a6..906063e 100644 --- a/core/applets/rotateapplet/rotate.cpp +++ b/core/applets/rotateapplet/rotate.cpp | |||
@@ -70,13 +70,13 @@ void RotateApplet::channelReceived( const QCString &msg, const QByteArray & data | |||
70 | 70 | ||
71 | if ( ODevice::inst()->hasHingeSensor() ) | 71 | if ( ODevice::inst()->hasHingeSensor() ) |
72 | { | 72 | { |
73 | struct timespec interval; | 73 | struct timespec interval; |
74 | struct timespec remain; | 74 | struct timespec remain; |
75 | interval.tv_sec = 0; | 75 | interval.tv_sec = 0; |
76 | interval.tv_nsec = 600; | 76 | interval.tv_nsec = 600000; |
77 | ::nanosleep( &interval, &remain ); | 77 | ::nanosleep( &interval, &remain ); |
78 | OHingeStatus status = ODevice::inst()->readHingeSensor(); | 78 | OHingeStatus status = ODevice::inst()->readHingeSensor(); |
79 | qDebug( "RotateApplet::readHingeSensor = %d", (int) status ); | 79 | qDebug( "RotateApplet::readHingeSensor = %d", (int) status ); |
80 | 80 | ||
81 | Config cfg( "apm" ); | 81 | Config cfg( "apm" ); |
82 | cfg.setGroup( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ? "AC" : "Battery" ); | 82 | cfg.setGroup( PowerStatusManager::readStatus().acStatus() == PowerStatus::Online ? "AC" : "Battery" ); |