Hi all!
I've had problems using serial_hw_int_cts and ds18b20 in a program, so I've 
made some additions to the one_wire library. You can define a safety level: 
Level 1 makes errors to occur less often with few side effects. Level 2 reduces 
errors triggered by interrupts to zero, but it will limit e.g. serial reception 
to a speed of 19200 baud.
The default of level 0 works as before to keep compatibility.

The most annoying error I've seen was that the "convert temp"-command was 
regularly corrupted, so I got during several minutes always the same reading of 
the scratchpad which was a temperature of a long time ago.
Then, occasionally the power-up after the write was delayed so the sensors did 
reset, giving a wrong temperature of 85°C.

If there are no objections, could someone commit the attached file please?
Thanks,Kiste

-- 
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jallib/1904390978.575683.1604311459507%40mail.yahoo.com.

Attachment: one_wire.jal
Description: Binary data

Reply via email to