-rw-r--r-- | libopie/odevice.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libopie/odevice.cpp b/libopie/odevice.cpp index 55ba7bd..cea4f35 100644 --- a/libopie/odevice.cpp +++ b/libopie/odevice.cpp | |||
@@ -1129,6 +1129,8 @@ void Zaurus::buzzer ( int sound ) | |||
1129 | { | 1129 | { |
1130 | static int fd = ::open ( "/dev/sharp_buz", O_RDWR|O_NONBLOCK ); | 1130 | static int fd = ::open ( "/dev/sharp_buz", O_WRONLY|O_NONBLOCK ); |
1131 | 1131 | ||
1132 | if ( fd >= 0 ) | 1132 | if ( fd >= 0 ) { |
1133 | ::ioctl ( fd, SHARP_BUZZER_MAKESOUND, sound ); | 1133 | ::ioctl ( fd, SHARP_BUZZER_MAKESOUND, sound ); |
1134 | ::close ( fd ); | ||
1135 | } | ||
1134 | } | 1136 | } |