diff --git a/NmraDcc.h b/NmraDcc.h index fd2c54f..3e1fbaa 100644 --- a/NmraDcc.h +++ b/NmraDcc.h @@ -91,7 +91,8 @@ typedef struct #define CV_29_CONFIG 29 #if defined(ESP8266) - #define MAXCV SPI_FLASH_SEC_SIZE +#include +#define MAXCV SPI_FLASH_SEC_SIZE #else #define MAXCV E2END // the upper limit of the CV value currently defined to max memory. #endif diff --git a/library.properties b/library.properties index 45d59e9..2441908 100644 --- a/library.properties +++ b/library.properties @@ -6,4 +6,4 @@ sentence=Enables NMRA DCC Communication paragraph=This library allows you to interface to a NMRA DCC track signal and receive DCC commands. The library currently supports the AVR ATTiny84/85 & ATMega88/168/328/32u4 and Teensy 3.x using the INT0/1 Hardware Interrupt and micros() ONLY and no longer uses Timer0 Compare Match B, which makes it much more portable to other platforms category=Communication url=http://mrrwa.org/dcc-decoder-interface/ -architectures=avr \ No newline at end of file +architectures=avr,esp8266 \ No newline at end of file