aboutsummaryrefslogtreecommitdiffstats
path: root/drv_PICGraphic.c
diff options
context:
space:
mode:
authormzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-01-23 17:01:08 +0000
committermzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2011-01-23 17:01:08 +0000
commitc15760b9e502d12e4905ef898e9694436ec3bde3 (patch)
treef8497d464654c9a597ba626a57df1ea2b073cac5 /drv_PICGraphic.c
parent72e1f7501bd6806022b7a33e1424ea2cc7fa4059 (diff)
downloadlcd4linux-c15760b9e502d12e4905ef898e9694436ec3bde3.tar.gz
timer.c: skip intermediate timer intervals
"timer_inc()" now checks how many trigger intervals have passed since a given timer has been updated. This might be due to "negative clock skew" (think of summer time) or the fact that some processing took too long (i.e. fetching of a web site). These missed trigger intervals are then skipped and the user is notified so that he may adapt his timer settings. This handling is essential, otherwise unprocessed timers might stack up and would trigger continuously while at the same time becoming notoriously late and unreliable. git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1141 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'drv_PICGraphic.c')
-rw-r--r--drv_PICGraphic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drv_PICGraphic.c b/drv_PICGraphic.c
index 8586eb6..c33973d 100644
--- a/drv_PICGraphic.c
+++ b/drv_PICGraphic.c
@@ -203,7 +203,7 @@ static void drv_PICGraphic_blit(const int row, const int col, const int height,
delayDone = 0;
int row8, height8;
row8 = 8 * (row / 8);
- height8 = 8 * (height / 8) + ! !(height % 8);
+ height8 = 8 * (height / 8) + !!(height % 8);
info("sending blit");
cmd[0] = 'b';
cmd[1] = row8;