don't needlessly duplicate code

This commit is contained in:
marschap
2007-11-04 14:49:51 +00:00
parent e6c4b71ff0
commit 280a60d30f
6 changed files with 26 additions and 36 deletions
+2 -3
View File
@@ -727,12 +727,11 @@ MtxOrb_set_brightness(Driver *drvthis, int state, int promille)
/* store the software value since there is no get */
if (state == BACKLIGHT_ON) {
p->brightness = promille;
MtxOrb_backlight(drvthis, BACKLIGHT_ON);
}
else {
p->offbrightness = promille;
MtxOrb_backlight(drvthis, BACKLIGHT_OFF);
}
MtxOrb_backlight(drvthis, state);
}
@@ -810,7 +809,7 @@ MtxOrb_output (Driver *drvthis, int state)
/**
* Clear the LCD using ints hardware command
* Clear the LCD using its hardware command
* \param drvthis Pointer to driver structure.
*/
static void