Can't believe I fucked the for loop like that

Well I can believe it
This commit is contained in:
2023-10-30 22:58:28 +00:00
parent e139aa7e9c
commit 69a7732017
2 changed files with 14 additions and 5 deletions

View File

@@ -63,6 +63,9 @@ my_dht22_data ten_minute_rolling_average;
uint32_t num_samples_last_ten_mins = 0;
void read_from_dht22() {
// From datasheet:
// Don't start within 1 second of powering on
// vTaskDelay(pdMS_TO_TICKS(2000)); FIXME - still doesn't actually fix the problem though
while (run_dht) {
// Data reading is based on time, so need to block interrups etc
// I _think_ these are freeRTOS task interrupts - I wonder if
@@ -143,7 +146,7 @@ void app_main(void) {
#ifdef CONFIG_DHT22_ENABLED
xTaskCreate(read_from_dht22, "DHT22",
4 * 1024, // honestly I have _no_ idea
8 * 1024, // honestly I have _no_ idea
NULL,
5, // no idea either
&dht22_handle);