From 3daae37c43a92b9605220821ca62ca547fadf2b0 Mon Sep 17 00:00:00 2001 From: reinelt Date: Sat, 5 Jun 2004 14:56:48 +0000 Subject: [lcd4linux @ 2004-06-05 14:56:48 by reinelt] Cwlinux splash screen fixed USBLCD splash screen fixed plugin_i2c qprintf("%f") replaced with snprintf() git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@465 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- plugin_i2c_sensors.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'plugin_i2c_sensors.c') diff --git a/plugin_i2c_sensors.c b/plugin_i2c_sensors.c index 2dcea77..4f1e569 100644 --- a/plugin_i2c_sensors.c +++ b/plugin_i2c_sensors.c @@ -1,4 +1,4 @@ -/* $Id: plugin_i2c_sensors.c,v 1.16 2004/06/01 06:45:30 reinelt Exp $ +/* $Id: plugin_i2c_sensors.c,v 1.17 2004/06/05 14:56:48 reinelt Exp $ * * I2C sensors plugin * @@ -23,6 +23,12 @@ * * * $Log: plugin_i2c_sensors.c,v $ + * Revision 1.17 2004/06/05 14:56:48 reinelt + * + * Cwlinux splash screen fixed + * USBLCD splash screen fixed + * plugin_i2c qprintf("%f") replaced with snprintf() + * * Revision 1.16 2004/06/01 06:45:30 reinelt * * some Fixme's processed @@ -194,7 +200,7 @@ static int parse_i2c_sensors_sysfs(char *key) !strncmp(key, "curr", 4) || !strncmp(key, "in", 2) || !strncmp(key, "vid", 3)) { - qprintf(val, sizeof(val), "%f", strtod(buffer, NULL) / 1000.0); + snprintf(val, sizeof(val), "%f", strtod(buffer, NULL) / 1000.0); } else { qprintf(val, sizeof(val), "%s", buffer); // we supress this nasty \n at the end -- cgit v1.2.3