From a14928b0359f2de18cc0d3c756653a0a6480efa0 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Mon, 30 Nov 2020 19:07:26 +0100 Subject: [PATCH] device configuration prepared --- cube/User/Inc/config.h | 2 +- cube/User/Src/config.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cube/User/Inc/config.h b/cube/User/Inc/config.h index c8498ec..41b7477 100644 --- a/cube/User/Inc/config.h +++ b/cube/User/Inc/config.h @@ -5,7 +5,7 @@ #include #include -#define CONFIG_MAGIC 0xdead0009 +#define CONFIG_MAGIC 0xdead000a #define DEVICE_MAGIC 0xaffe0000 typedef struct __attribute__((__packed__)) s_configBlock { diff --git a/cube/User/Src/config.c b/cube/User/Src/config.c index c7f6566..59266c8 100644 --- a/cube/User/Src/config.c +++ b/cube/User/Src/config.c @@ -27,7 +27,7 @@ t_deviceBlock defaultDeviceBlock[] = { .filler = { 0, 0, 0 } }, { - .deviceMagic = DEVICE_MAGIC+1, + .deviceMagic = DEVICE_MAGIC, .deviceName = "Dryer", .address = 81, .consideredField = { 0, 4, 2, 3 },