Improve graph calculation stability

This commit is contained in:
Gunnar Skjold
2022-02-12 11:12:48 +01:00
parent ef0041caa6
commit 0c1d666afd
5 changed files with 133 additions and 94 deletions

View File

@@ -5,8 +5,6 @@
#include "RemoteDebug.h"
#include "Timezone.h"
#define EPOCH_2021_01_01 1609459200
struct DayDataPoints {
uint8_t version;
int16_t points[24];
@@ -38,6 +36,8 @@ public:
MonthDataPoints getMonthData();
bool setMonthData(MonthDataPoints&);
bool isHappy();
private:
Timezone* tz;
DayDataPoints day = {