From f89120a7a1a3d0bf9c0805456490906ca914e560 Mon Sep 17 00:00:00 2001 From: mickeyl Date: Tue, 11 Jan 2005 21:08:00 +0000 Subject: workaround a quirk in the linux kernel semantics echo 1 >power actually powers off a device *cough* --- (limited to 'libopie2/opiecore/device/odevice_zaurus.cpp') diff --git a/libopie2/opiecore/device/odevice_zaurus.cpp b/libopie2/opiecore/device/odevice_zaurus.cpp index 269f6c9..d3ab63a 100644 --- a/libopie2/opiecore/device/odevice_zaurus.cpp +++ b/libopie2/opiecore/device/odevice_zaurus.cpp @@ -496,7 +496,7 @@ bool Zaurus::setDisplayStatus( bool on ) if ( fd ) { char buf[10]; - buf[0] = on ? '0' : '1'; + buf[0] = on ? '1' : '0'; buf[1] = '\0'; res = ( ::write( fd, &buf[0], 2 ) == 0 ); ::close( fd ); -- cgit v0.9.0.2