decrease size of minute buffer

This commit is contained in:
2021-02-15 12:18:19 +01:00
parent 69128ab209
commit e39d562a4d
2 changed files with 17 additions and 16 deletions

View File

@ -5,17 +5,12 @@
#include <sha256.h>
#include <config.h>
typedef struct __attribute__((__packed__)) {
uint64_t timestamp;
uint32_t frequency;
} t_event;
#define SECONDS_PER_MINUTE 60
typedef struct __attribute__((__packed__)) {
char deviceId[sizeof(((t_configBlock*)0)->deviceId)];
uint8_t hash[SHA256_BLOCK_SIZE];
uint8_t done;
t_event events[SECONDS_PER_MINUTE];
uint64_t timestamp;
uint32_t frequency[SECONDS_PER_MINUTE];
} t_minuteStruct;
typedef union {