fishy-wifi icon indicating copy to clipboard operation
fishy-wifi copied to clipboard

Fix -127C readings for water temperature sensor

Open Eroc33 opened this issue 6 years ago • 1 comments

This should fix the water temp sensor giving spurious readings of -127C (indicating disconnected). Note this is probably the same root cause as in my comment on the DHT issue, but this type of in-tree fix, while easier to maintain doesn't seem to work for the DHT (the timing of setting interrupts seems to be more crucial for the DHT sensor for some reason).

For review: Should I add comments mentioning why this workaround is here?

Eroc33 avatar Dec 04 '17 13:12 Eroc33

I think a couple of words of comment might help others, especially as this workaround might end up persisting for a bit - as according to https://github.com/espressif/arduino-esp32/pull/835#issue-273902858 RTOS sei/cli get nested whereas a single arduino sei just re-enables interrupts...

layerzerolabs avatar Dec 04 '17 21:12 layerzerolabs