diff -r 3b1834482899 -r 43362bb8f3c0 main/task_ds18b20.c --- a/main/task_ds18b20.c Fri Apr 10 11:51:40 2020 +0200 +++ b/main/task_ds18b20.c Sat Jun 13 22:07:22 2020 +0200 @@ -23,6 +23,7 @@ EventGroupHandle_t xEventGroupDS18B20; ///< Events DS18B20 task DS18B20_State *ds18b20_state; ///< Public state for other tasks +extern uint32_t err_temp; const int TASK_DS18B20_REQUEST_TEMPS = BIT0; ///< Request temperature measurements const int TASK_DS18B20_REQUEST_DONE = BIT1; ///< Request is completed @@ -146,10 +147,12 @@ ds18b20_state->sensor[i].error = DS18B20_ERR_READ; // All other errors ds18b20_state->valid = false; ds18b20_state->sensor[i].temperature = 0.0; + err_temp++; } else if (readings[i] == 85.0) { // Error value ds18b20_state->sensor[i].error = DS18B20_ERR_READ; ds18b20_state->valid = false; ds18b20_state->sensor[i].temperature = 0.0; + err_temp++; } else { ds18b20_state->sensor[i].error = DS18B20_ERR_NONE; ds18b20_state->sensor[i].temperature = readings[i];