Can't believe I fucked the for loop like that
Well I can believe it
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user