feat: in-RAM pressure history ring buffer with 3h trend

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
oskarvitaliiandClaude Opus 4.8 committed 2026-07-17 20:02:40 +07:00
1 parent 5819739fcb
commit 5c96cfc1f3
3 files changed
+66

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
#pragma once
#include <Arduino.h>
struct Sample {
uint32_t epoch;
float mslHpa;
float tempC;
};
void historyBegin();
void historyAdd(uint32_t epoch, float mslHpa, float tempC);
int historyCount();
Sample historyGet(int i); // 0 = oldest
Sample historyLatest();
bool historyTrendDelta(float& outDeltaHpa);