cleanup: removed dead code, fixed small issues

This commit is contained in:
A.M. Rowsell 2026-06-24 11:20:16 -04:00
commit 06626f3349
4 changed files with 5 additions and 37 deletions

View file

@ -25,7 +25,7 @@ uint8_t ENS_IDLE[2] = {0x10, 0x01};
#define ENS_ECO2 0x24
#define ENS_ETOH 0x26
#define AVERAGES 16
#define AVERAGES 4
// MQTT and WiFi defines
#define ADAFRUIT_IO_HOST "io.adafruit.com"
@ -187,7 +187,7 @@ int main() {
}
avg_t = average_double(t_avg, sample_count);
avg_h = average_double(h_avg, sample_count);
printf("\x1b[J\x1b[HTemperature %0.2f Humidity %0.2f\n", avg_t, avg_h);
printf("\x1b[H\x1b[JTemperature %0.2f Humidity %0.2f\n", avg_t, avg_h);
validData = getENSData(&avg_t, &avg_h, &aqi, &tvoc, &eco2, &etoh);
tvoc_avg[i] = tvoc;
eco2_avg[i] = eco2;