1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00
Marian Buschsieweke 579a67be03
drivers/dht: Move hold logic from SAUL to driver
The DHT11/DHT21/DHT22 cannot be sampled more than once a second. Previously,
a global cache was added to the SAUL adaption of the dht driver to answer with
stored values for one second after the last read. This however had two
disadvantages:

- The global cache was shared for all DHTXX devices connected. As a result
  incorrect values were delivered when reading out multiple sensors over SAUL
  with less than 1 second delay in between
- A user of the low level API will had to implement the same caching strategy,
  resulting in code duplication

By moving the hold logic to the driver, both limitations can be overcome.
2019-07-29 10:39:50 +02:00
..
2017-09-01 15:12:20 +02:00
2019-02-08 09:01:20 +01:00
2017-09-01 15:12:20 +02:00
2019-03-14 14:32:28 +01:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-06-21 17:05:45 +02:00
2018-08-02 15:52:58 +02:00
2019-03-11 01:44:22 +01:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-08-30 09:06:03 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2017-09-01 15:12:20 +02:00
2018-06-27 08:58:00 +02:00
2019-06-05 21:24:38 +02:00
2018-07-25 12:01:38 +02:00
2018-07-25 12:01:40 +02:00
2019-07-04 14:23:48 +02:00
2018-06-11 19:10:40 +02:00