Only update the backlight setting if a change is necessary

This commit is contained in:
mmdolze committed 2009-02-24 21:41:04 +00:00
1 parent 8ff94b83ed
commit aaed3765a1
3 files changed
+11 -5

No files matched your search

+1
View File
@@ -195,6 +195,7 @@ typedef struct hd44780_private_data {
int contrast; // Contrast setting (range 0 - 1000)
int brightness; // Brightness when backlight is "on" (range 0 - 1000)
int offbrightness; // Brightness when backlight is "off" (range 0 - 1000)
int backlightstate; // Saves the last backlight state
} PrivateData;