First test, console

Working average from main only
This commit is contained in:
samuelbles07
2024-10-14 02:05:30 +07:00
parent a2c19438c0
commit e145d32714
2 changed files with 167 additions and 245 deletions
+1 -1
View File
@@ -193,7 +193,7 @@ bool Measurements::updateValue(AgValueType type, float val, int ch) {
// TODO: Need to check if SUCCESS == 0
// Calculate the average
temporary->avg = temporary->sumValues / temporary->update.success;
Serial.printf("%s{%d} count reached! Average value %0.2f\n", agValueTypeStr(type),
Serial.printf("%s{%d} count reached! Average value %0.2f\n", agValueTypeStr(type), ch,
temporary->avg);
// This is just for notifying