Skip to content

Commit

Permalink
Merge pull request #284 from hasenradball/master
Browse files Browse the repository at this point in the history
[esp8266]: prevent compiler Warning (Issue: #283)
  • Loading branch information
ladyada authored Jul 19, 2021
2 parents 94cbbec + 88c1ef5 commit e2d1a72
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Adafruit_NeoPixel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ extern "C" void rp2040Show(

#if defined(ESP8266)
// ESP8266 show() is external to enforce ICACHE_RAM_ATTR execution
extern "C" void ICACHE_RAM_ATTR espShow(
extern "C" IRAM_ATTR void espShow(
uint16_t pin, uint8_t *pixels, uint32_t numBytes, uint8_t type);
#elif defined(ESP32)
extern "C" void espShow(
Expand Down
4 changes: 2 additions & 2 deletions esp8266.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ static inline uint32_t _getCycleCount(void) {
}

#ifdef ESP8266
void ICACHE_RAM_ATTR espShow(
uint8_t pin, uint8_t *pixels, uint32_t numBytes, boolean is800KHz) {
IRAM_ATTR void espShow(
uint8_t pin, uint8_t *pixels, uint32_t numBytes, __attribute__((unused)) boolean is800KHz) {
#else
void espShow(
uint8_t pin, uint8_t *pixels, uint32_t numBytes, boolean is800KHz) {
Expand Down

0 comments on commit e2d1a72

Please sign in to comment.