config rearranged

This commit is contained in:
Wolfgang Hottgenroth 2021-02-16 12:19:50 +01:00
parent b39c396871
commit 734343c477
Signed by: wn
GPG Key ID: 6C1E5E531E0D5D7F

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