Skip to content

Commit

Permalink
Restored compatibility with ESP8266 Arduino Core < 3.0.1 (Makuna#500)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aircoookie authored and AMoo-Miki committed Aug 15, 2022
1 parent 82cf608 commit f2cb833
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/internal/NeoEsp8266DmaMethod.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,13 @@ extern "C"
#include "ets_sys.h"

#include "i2s_reg.h"
#include "core_esp8266_i2s.h"

#ifdef ARDUINO_ESP8266_MAJOR //this define was added in ESP8266 Arduino Core version v3.0.1
#include "core_esp8266_i2s.h" //for Arduino core >= 3.0.1
#else
#include "i2s.h" //for Arduino core <= 3.0.0
#endif

#include "eagle_soc.h"
#include "esp8266_peri.h"
#include "slc_register.h"
Expand Down

0 comments on commit f2cb833

Please sign in to comment.