Only update the backlight setting if a change is necessary

This commit is contained in:
mmdolze
2009-02-24 21:41:04 +00:00
parent 8ff94b83ed
commit aaed3765a1
3 changed files with 11 additions and 5 deletions
+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;