Commit f1647b8b authored by Eric Duminil's avatar Eric Duminil
Browse files

Only ESP8266

parent e9272a6a
Pipeline #6046 passed with stage
in 1 minute and 47 seconds
...@@ -18,7 +18,7 @@ License along with this library; if not, write to the Free Software ...@@ -18,7 +18,7 @@ License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#if defined(ESP8266)
#include <Arduino.h> #include <Arduino.h>
// The Arduino standard GPIO routines are not enough, // The Arduino standard GPIO routines are not enough,
...@@ -398,3 +398,4 @@ void ICACHE_RAM_ATTR MySoftwareSerial::rxRead() { ...@@ -398,3 +398,4 @@ void ICACHE_RAM_ATTR MySoftwareSerial::rxRead() {
// it gets set even when interrupts are disabled // it gets set even when interrupts are disabled
GPIO_REG_WRITE(GPIO_STATUS_W1TC_ADDRESS, 1 << m_rxPin); GPIO_REG_WRITE(GPIO_STATUS_W1TC_ADDRESS, 1 << m_rxPin);
} }
#endif
\ No newline at end of file
...@@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA ...@@ -21,6 +21,7 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#ifndef MySoftwareSerial_h #ifndef MySoftwareSerial_h
#if defined(ESP8266)
#define MySoftwareSerial_h #define MySoftwareSerial_h
#include <inttypes.h> #include <inttypes.h>
...@@ -109,3 +110,4 @@ private: ...@@ -109,3 +110,4 @@ private:
#endif #endif
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment