From 8a89eeab079decfc4c312438c67d4fc51b8de3c1 Mon Sep 17 00:00:00 2001 From: reinelt Date: Mon, 31 Jul 2006 03:48:09 +0000 Subject: [lcd4linux @ 2006-07-31 03:48:09 by reinelt] preparations for scrolling git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@680 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- widget_timer.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'widget_timer.c') diff --git a/widget_timer.c b/widget_timer.c index 0190acd..4c6b055 100644 --- a/widget_timer.c +++ b/widget_timer.c @@ -1,4 +1,4 @@ -/* $Id: widget_timer.c,v 1.2 2006/02/25 13:36:33 geronet Exp $ +/* $Id: widget_timer.c,v 1.3 2006/07/31 03:48:09 reinelt Exp $ * * timer widget handling * @@ -21,6 +21,9 @@ * * * $Log: widget_timer.c,v $ + * Revision 1.3 2006/07/31 03:48:09 reinelt + * preparations for scrolling + * * Revision 1.2 2006/02/25 13:36:33 geronet * updated indent.sh, applied coding style * @@ -109,17 +112,17 @@ int widget_timer_init(WIDGET * Self) memset(Timer, 0, sizeof(WIDGET_TIMER)); /* get raw expressions (we evaluate them ourselves) */ - Timer->expression = cfg_get_raw(section, "axpression", NULL); + Timer->expression = cfg_get_raw(section, "expression", NULL); Timer->update_expr = cfg_get_raw(section, "update", "100"); Timer->active_expr = cfg_get_raw(section, "active", "1"); /* sanity checks */ if (Timer->expression == NULL || *Timer->expression == '\0') { - error("Timer %s has no expression, using '1'", Self->name); + error("Timer '%s' has no expression, using '1'", Self->name); Timer->expression = "1"; } if (Timer->update_expr == NULL || *Timer->update_expr == '\0') { - error("Timer %s has no update, using '100'", Self->name); + error("Timer '%s' has no update, using '100'", Self->name); Timer->update_expr = "100"; } -- cgit v1.2.3