Add DHT debugging information

This commit is contained in:
Theo Arends 2021-12-26 14:00:07 +01:00
parent 4962fd229e
commit cb52c4cf35
1 changed files with 3 additions and 0 deletions

View File

@ -115,6 +115,9 @@ bool DhtRead(uint32_t sensor) {
} }
} }
interrupts(); interrupts();
AddLog(LOG_LEVEL_DEBUG_MORE, PSTR("DHT: Read %5_H"), dht_data);
if (i < 40) { return false; } if (i < 40) { return false; }
uint8_t checksum = (dht_data[0] + dht_data[1] + dht_data[2] + dht_data[3]) & 0xFF; uint8_t checksum = (dht_data[0] + dht_data[1] + dht_data[2] + dht_data[3]) & 0xFF;