We used a deprecated style of GNU GCC's designated initializers. Change them

to correct C99 style to fix warnings when building with clang.
Fix some typos in hd44780-serial while being there.
This commit is contained in:
mmdolze
2012-04-25 06:34:36 +00:00
parent 83b68ed09a
commit 9e4c082fd0
5 changed files with 1813 additions and 1812 deletions
+1 -1
View File
@@ -321,7 +321,7 @@ serial_HD44780_backlight(PrivateData *p, unsigned char state)
int val = (state == BACKLIGHT_ON) ? p->brightness : p->offbrightness;
/* Map the value to output range (rounding up) */
send = (val * (SERIAL_IF.backlight_on - SERIAL_IF.backlight_off) + 999) / 1000 + SERIAL_IF.backlight_off;;
send = (val * (SERIAL_IF.backlight_on - SERIAL_IF.backlight_off) + 999) / 1000 + SERIAL_IF.backlight_off;
write(p->fd, &send, 1);
}
}