Fixed reference errors

This commit is contained in:
2026-08-09 14:30:47 -06:00
parent 7ad00e452c
commit 243419b401
4 changed files with 13 additions and 24 deletions
+9 -21
View File
@@ -13,13 +13,6 @@ void DiagnosticsState::update()
current.cpuFrequency =
ESP.getCpuFreqMHz();
//history[historyIndex] = current;
//
//historyIndex++;
//if(historyIndex >= DIAGNOSTIC_HISTORY_SIZE)
//{
// historyIndex = 0;
//}
Serial.print("#update: ");
Serial.println(current.freeHeap);
Serial.println("Calling current from update");
@@ -31,19 +24,14 @@ void DiagnosticsState::update()
DiagnosticSample DiagnosticsState::getCurrent()
{
DiagnosticSample sample;
sample.timestamp = current.timestamp;
sample.freeHeap = current.freeHeap;
sample.minimumFreeHeap = current.minimumFreeHeap;
sample.cpuFrequency = current.cpuFrequency;
Serial.print("#getCurrent: ");
Serial.println(current.freeHeap);
Serial.println(current.timestamp);
return current;
Serial.println(sample.freeHeap);
Serial.println(sample.timestamp);
return sample;
}
//DiagnosticSample DiagnosticsState::getHistory(uint8_t index)
//{
// if(index >= DIAGNOSTIC_HISTORY_SIZE)
// {
// return current;
// }
// return history[index];
//}