Use better ESP8266 check to compile on all ESP8266

as now I can test on NodeMCU 1.0 also
This commit is contained in:
luc 2015-10-02 12:25:43 +08:00
parent beca36448f
commit 61ee21a423

View File

@ -24,8 +24,8 @@
*/ */
//be sure correct IDE and settings are used for ESP8266 //be sure correct IDE and settings are used for ESP8266
#ifndef ARDUINO_ESP8266_ESP01 #ifndef ARDUINO_ARCH_ESP8266
#error Oops! Make sure you have 'ESP8266' selected from the 'Tools -> Boards' menu. #error Oops! Make sure you have 'ESP8266' compatible board selected from the 'Tools -> Boards' menu.
#endif #endif
#include <SPI.h> #include <SPI.h>
#include <EEPROM.h> #include <EEPROM.h>