drop location

This commit is contained in:
2021-02-10 16:20:32 +01:00
parent eb87009b60
commit 89444476b8
5 changed files with 1 additions and 18 deletions

View File

@ -4,7 +4,7 @@
#include <stdint.h>
#include <sha256.h>
#define CONFIG_MAGIC 0xdead0006
#define CONFIG_MAGIC 0xdead0007
typedef struct __attribute__((__packed__)) s_configBlock {
uint32_t configMagic;
@ -13,7 +13,6 @@ typedef struct __attribute__((__packed__)) s_configBlock {
char ntpServer[48];
char deviceId[16];
char sharedSecret[SHA256_BLOCK_SIZE];
char location[48];
char sinkServer[48];
uint8_t filler[6];
} t_configBlock;

View File

@ -13,7 +13,6 @@ typedef struct __attribute__((__packed__)) {
#define SECONDS_PER_MINUTE 60
typedef struct __attribute__((__packed__)) {
char deviceId[sizeof(((t_configBlock*)0)->deviceId)];
char location[sizeof(((t_configBlock*)0)->location)];
uint8_t hash[SHA256_BLOCK_SIZE];
uint8_t done;
t_event events[SECONDS_PER_MINUTE];