aboutsummaryrefslogtreecommitdiffstats
path: root/processor.c
diff options
context:
space:
mode:
authorreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-09-11 04:09:53 +0000
committerreinelt <reinelt@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>2003-09-11 04:09:53 +0000
commit42eb8ba4829ed60addd82f178e3cc1459634e541 (patch)
treed17d4de75c046c1d10f0e19e33c0dc35449ee79c /processor.c
parent35b12c1caeb9e9e3f326511c429f69eaf864ac32 (diff)
downloadlcd4linux-42eb8ba4829ed60addd82f178e3cc1459634e541.tar.gz
[lcd4linux @ 2003-09-11 04:09:52 by reinelt]
minor cleanups git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@240 3ae390bd-cb1e-0410-b409-cd5a39f66f1f
Diffstat (limited to 'processor.c')
-rw-r--r--processor.c22
1 files changed, 18 insertions, 4 deletions
diff --git a/processor.c b/processor.c
index e25ba0a..0dd998e 100644
--- a/processor.c
+++ b/processor.c
@@ -1,4 +1,4 @@
-/* $Id: processor.c,v 1.44 2003/09/10 15:59:39 reinelt Exp $
+/* $Id: processor.c,v 1.45 2003/09/11 04:09:53 reinelt Exp $
*
* main data processing
*
@@ -20,6 +20,9 @@
*
*
* $Log: processor.c,v $
+ * Revision 1.45 2003/09/11 04:09:53 reinelt
+ * minor cleanups
+ *
* Revision 1.44 2003/09/10 15:59:39 reinelt
* minor cleanups
*
@@ -705,8 +708,10 @@ static char *process_row (char *data, int row, int len)
}
} else if (*s=='&') {
- lcd_icon(*(++s)-'0', 0, row, p-buffer+1);
- *p++='\t';
+ if (lcd_icon(*(++s)-'0', 0, row, p-buffer+1)<0)
+ *p++='*'; // error
+ else
+ *p++='\t'; // all ok
} else {
*p++=*s;
@@ -841,7 +846,16 @@ void process_init (void)
tack=tick;
if (tack>tick_icon) tack=tick_icon;
- debug ("using tick=%d msec, tack=%d msec", tick, tack);
+ debug ("========================");
+ debug ("Timings:");
+ debug ("%3d msec Text updates", tick_text);
+ debug ("%3d msec Bar updates", tick_bar );
+ debug ("%3d msec Icon updates", tick_icon);
+ debug ("%3d msec GPO updates", tick_gpo );
+ debug ("------------------------");
+ debug ("%3d msec data collection", tick);
+ debug ("%3d msec data processing", tack);
+ debug ("========================");
for (i=1; i<=lines; i++) {
char buffer[8], *p;