lower and upper bound

This commit is contained in:
Wolfgang Hottgenroth
2021-03-15 17:16:19 +01:00
parent 1626bd7030
commit cface0d4b2
3 changed files with 42 additions and 26 deletions

View File

@ -3,11 +3,10 @@
#include <stdint.h>
#include <sha256.h>
#include <config.h>
#define SECONDS_PER_MINUTE 60
typedef struct __attribute__((__packed__)) {
char deviceId[sizeof(((t_configBlock*)0)->deviceId)];
char deviceId[16];
uint8_t hash[SHA256_BLOCK_SIZE];
uint32_t totalRunningHours;
uint32_t totalPowercycles;
@ -22,4 +21,4 @@ typedef union {
uint8_t b[sizeof(t_minuteStruct)];
} t_minuteBuffer;
#endif // _SINKSTRUCT_H_
#endif // _SINKSTRUCT_H_