replaced '4096' with definition SPI_FLASH_SEC_SIZE from header file

This commit is contained in:
Alex Shepherd
2016-08-20 17:36:47 +12:00
parent d3059d2f4e
commit 3eee73f6cd
2 changed files with 47 additions and 47 deletions

View File

@@ -89,12 +89,12 @@ typedef struct
#define CV_VERSION_ID 7
#define CV_MANUFACTURER_ID 8
#define CV_29_CONFIG 29
#if defined(ESP8266)
#define MAXCV 4096
#else
#if defined(ESP8266)
#define MAXCV SPI_FLASH_SEC_SIZE
#else
#define MAXCV E2END // the upper limit of the CV value currently defined to max memory.
#endif
#endif
typedef enum {
CV29_LOCO_DIR = 0b00000001, /** bit 0: Locomotive Direction: "0" = normal, "1" = reversed */