Fix compile error on ESP32 (#241)

This commit is contained in:
Ivan Kostoski authored and GitHub committed 2020-02-28 13:37:55 -08:00
1 parent 377b271edd
commit 9e90cd780e
2 files changed
+7 -3

No files matched your search

+4
View File
@@ -31,6 +31,8 @@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
#if defined(ESP8266)
#include "SinglePinI2SDriver.h"
SinglePinI2SDriver::~SinglePinI2SDriver()
@@ -277,3 +279,5 @@ int SinglePinI2SDriver::getUnderflowCount()
// Global instance
SinglePinI2SDriver I2SDriver;
#endif // defined(ESP8266)
+3 -3
View File
@@ -20,9 +20,7 @@
*/
#pragma once
#if !defined(ESP8266)
#error "This driver is ESP8266 specific, only include it on ESP8266"
#endif
#if defined(ESP8266)
#include <Arduino.h>
#include "osapi.h"
@@ -83,3 +81,5 @@ class SinglePinI2SDriver
// Global instance
extern SinglePinI2SDriver I2SDriver;
#endif // defined(ESP8266)