diff options
author | mrwastl <mrwastl@users.sourceforge.net> | 2011-07-30 13:53:25 +0200 |
---|---|---|
committer | mrwastl <mrwastl@users.sourceforge.net> | 2011-07-30 13:53:25 +0200 |
commit | 2fa7db7a2d34973a168f90e6605ce123b293cf13 (patch) | |
tree | 9ce1db9c7b0e13ea36bdd26c7afb5a5d19965271 /glcdskin/function.c | |
parent | 21d15ba6ddf7440f229eb627ff3cc28393e3faee (diff) | |
download | graphlcd-base-2fa7db7a2d34973a168f90e6605ce123b293cf13.tar.gz graphlcd-base-2fa7db7a2d34973a168f90e6605ce123b293cf13.tar.bz2 |
skin definitions: added simple support for including files; increased graphlcd-base version to 0.3.0 and version of included libraries to 2.1.0; bug fix: don't syslog a detection of an invalid number when evaluating in cSkinFunction (just return that this is obviously not a valid function)
Diffstat (limited to 'glcdskin/function.c')
-rw-r--r-- | glcdskin/function.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/glcdskin/function.c b/glcdskin/function.c index 9815073..c6089bc 100644 --- a/glcdskin/function.c +++ b/glcdskin/function.c @@ -128,7 +128,8 @@ bool cSkinFunction::Parse(const std::string & Text) int num = strtol(ptr, &end, 10); if (end == ptr || *end != '\0') { - syslog(LOG_ERR, "ERROR: Invalid numeric value\n"); + // don't log this because when parsing a string starting with a digit (eg: 0%) this may result in a load of false positives + //syslog(LOG_ERR, "ERROR: Invalid numeric value (%s)\n", Text.c_str()); return false; } |