From 3a5986d10dc97e2dfcc39a0463432ddef459cae6 Mon Sep 17 00:00:00 2001 From: Alex Shepherd Date: Wed, 16 Nov 2016 10:01:36 +1300 Subject: [PATCH] added esp8266 to supported architectures added addition #include file for esp8266 to resolve missing SPI_FLASH_SEC_SIZE symbol --- NmraDcc.h | 3 ++- library.properties | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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