Hi Xavier,
>> With your last commit, you broke plugin_i2c_sensors ! It seems like
>> qprintf doesn't work as expected. I'll try to work on it.
>
> Sorry. You're right, qprintf() does not support %f (float/double numbers).
>
> We could either replace with snprintf() or enhance qprintf() for floats.
I just browsed through the manuals: There are these ecvt(), fcvt, gcvt()
functions which convert a float/double into a string. But they are "not
recommended", one should use sprintf() instead.
So I won't rework qprintf(), it should be used for strings and integers
only.
We have to replace the call to qprintf() with snprintf in the
i2c_sensors plugin.
Xavier, will you, or shall I do so?
bye, Michael
--
Michael Reinelt Tel: +43 676 3079941
Geisslergasse 4 Fax: +43 316 692343
A-8045 Graz, Austria e-mail: re...@eu...
|