]> git.itanic.dy.fi Git - BME280_driver/commit
tempd: Attempt retry if 1wire sensor returns "85"
authorTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 21 Apr 2021 08:12:45 +0000 (11:12 +0300)
committerTimo Kokkonen <timo.t.kokkonen@iki.fi>
Wed, 21 Apr 2021 08:14:37 +0000 (11:14 +0300)
commit5aa275bcc5aedd3b3aedf218cd4ddb8048673f07
tree466f8f6199f99e694d088e047f7dad3b532a37f5
parentbee2413bba67bdd144d7844d2dd8b34d444e8ac0
tempd: Attempt retry if 1wire sensor returns "85"

Result 85 is typical for DS18B20 sensors when some error happens with
them. If so, attempt retry up to three times in order to recover from
the error. If still error, return error instead of "85" as temperature
value.

Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
tempd.c