mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-30 08:51:19 +01:00
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.