From 367a41527dc7a1c5d0655c404a7ea9a99193ce86 Mon Sep 17 00:00:00 2001 From: Marcel Peterkau Date: Tue, 28 Feb 2023 10:12:18 +0100 Subject: [PATCH] Updated FW-Version --- Software/src/common.h | 4 ++-- Software/src/config.h | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Software/src/common.h b/Software/src/common.h index 1eda6b7..ece0342 100644 --- a/Software/src/common.h +++ b/Software/src/common.h @@ -26,8 +26,8 @@ #define HOST_NAME "ChainLube_%06X" // Use printf-Formatting - Chip-ID (uin32_t) will be added #endif -#define SW_VERSION 1.3 -#define FLASH_FS_VERSION 1.3 +#define SW_VERSION 1.4 +#define FLASH_FS_VERSION 1.4 #ifndef OTA_DELAY #define OTA_DELAY 50 // ticks -> 10ms / tick diff --git a/Software/src/config.h b/Software/src/config.h index 3ec1b7e..b0bd76e 100644 --- a/Software/src/config.h +++ b/Software/src/config.h @@ -8,7 +8,11 @@ #include "dtc.h" #include "common.h" +#if PCB_REV == 1 || PCB_REV == 2 || PCB_REV == 3 +#define EEPROM_SIZE_BYTES I2C_DEVICESIZE_24LC64 +#elif PCB_REV == 4 #define EEPROM_SIZE_BYTES I2C_DEVICESIZE_24LC256 +#endif typedef enum SpeedSource_e {