diff --git a/examples/SI4844_ESP8266_POC/SI4844_ESP8266_POC.ino b/examples/SI4844_ESP8266_POC/SI4844_ESP8266_POC.ino index f803736..a9aa451 100644 --- a/examples/SI4844_ESP8266_POC/SI4844_ESP8266_POC.ino +++ b/examples/SI4844_ESP8266_POC/SI4844_ESP8266_POC.ino @@ -4,10 +4,10 @@ * * SI4844 and ESP8266 connections * - * | SI4844 pin | Arduino pin | Description | + * | SI4844 pin | ESP8266 pin | Description | * | --------- | ------------ | ------------------------------------------------- | * | 2 | GPIO2 | Interrupt pin | - * | 15 | GPIO12 | Regurlar digital pin used to RESET control | + * | 15 | GPIO15 | Regurlar digital pin used to RESET control | * | 16 | GPIO4(SDA) | I2C bus (Data) | * | 17 | GPIO5(SCL) | I2C bus (Clocl) | * diff --git a/src/SI4844.h b/src/SI4844.h index fd3d30d..2b10df1 100644 --- a/src/SI4844.h +++ b/src/SI4844.h @@ -252,12 +252,14 @@ volatile static bool data_from_device; * @details You can control the interrupt process via your sketch intead of this library. * @see setStatusInterruptFromDevice, getStatusInterruptFromDevice, setup */ +#ifdef ESP8266 + IRAM_ATTR +#endif static void interrupt_hundler() { data_from_device = true; } - /** * @brief SI4844 Class *