Er, actually, I don't think I wrote that. I think I'm confusing that with
some work I did with the python interface, which was what crashed with
negative temperatures. I'll have to review it later but I think I took
credit for an error I didn't make. That's gotta be a first for me...
On Sat, May 10, 2008 at 11:49 PM, Christian Magnusson <[EMAIL PROTECTED]> wrote:
>
>
> Did the code crash when there were negative temperatures using the old
> function?
>
> BYTE data = BYTE_MASK((int) (T + .49)); // round off
>
>
>
> /Christian
>
>
>
>
>
>
>
> *From:* [EMAIL PROTECTED] [mailto:
> [EMAIL PROTECTED] *On Behalf Of *Doug
> Collinge
> *Sent:* den 11 maj 2008 01:16
> *To:* [email protected]
> *Subject:* Re: [Owfs-developers] lrint() changes
>
>
>
> I only used that for a quick fix to a problem connected with the 1821
> returning negative temperatures and causing a crash. I agree that it's not
> worth creating a dependency for so I would be happy to code it into the 1821
> support if you give me a few days to code and test.
>
> On Sat, May 10, 2008 at 1:00 PM, Christian Magnusson <[EMAIL PROTECTED]>
> wrote:
>
>
>
> We have to make some more changes in configure.ac after lrint() is used in
> ow_1821.c. This function is located in libm.so, and this is the first
> dependency to this library.
>
> I think it's a waste of memory to add a new dynamic library if we only use
> one single function in it from owlib…. Especially on the embedded systems.
>
>
>
> Anyway… the dependency could be added with this row in configure.ac.
>
> AC_SEARCH_LIBS(lrint, m, AC_DEFINE(HAVE_LRINT, 1, [Define if you have
> lrint]))
>
>
>
> I have added some changes in the CVS to make this check.
>
>
>
> /Christian
>
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Don't miss this year's exciting event. There's still time to save $100.
> Use priority code J8TL2D2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Owfs-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
>
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers