mirror of
https://github.com/esphome/esphome.git
synced 2025-09-06 13:22:19 +01:00
Fix a bunch of typos (#2058)
Co-authored-by: Stefan Agner <stefan@agner.ch> Co-authored-by: Otto Winter <otto@otto-winter.com> Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
@@ -203,7 +203,7 @@ bool HOT ICACHE_RAM_ATTR DHT::read_sensor_(float *temperature, float *humidity,
|
||||
const uint16_t raw_humidity = uint16_t(data[0]) * 10 + data[1];
|
||||
*humidity = raw_humidity / 10.0f;
|
||||
} else {
|
||||
// For compatibily with DHT11 models which might only use 2 bytes checksums, only use the data from these two
|
||||
// For compatibility with DHT11 models which might only use 2 bytes checksums, only use the data from these two
|
||||
// bytes
|
||||
*temperature = data[2];
|
||||
*humidity = data[0];
|
||||
|
Reference in New Issue
Block a user