[Pommed-commits] r321 - trunk/pommed

Julien Blache jblache at alioth.debian.org
Sat May 5 16:44:26 UTC 2007


Author: jblache
Date: 2007-05-05 16:44:26 +0000 (Sat, 05 May 2007)
New Revision: 321

Modified:
   trunk/pommed/kbd_auto.c
Log:
Toggle to the default level if the previous level was less than the default level.


Modified: trunk/pommed/kbd_auto.c
===================================================================
--- trunk/pommed/kbd_auto.c	2007-05-05 16:40:21 UTC (rev 320)
+++ trunk/pommed/kbd_auto.c	2007-05-05 16:44:26 UTC (rev 321)
@@ -34,6 +34,9 @@
     }
   else
     {
+      if (kbd_bck_info.toggle_lvl < kbd_cfg.auto_lvl)
+	kbd_bck_info.toggle_lvl = kbd_cfg.auto_lvl;
+
       kbd_backlight_set(kbd_bck_info.toggle_lvl, KBD_USER);
     }
 }




More information about the Pommed-commits mailing list