Skip to content

Commit f206fd5

Browse files
committed
fix:Adaptation for support of the new version of C++ of IDF.
1 parent 248d20d commit f206fd5

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

CMakeLists.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1-
21
idf_component_register(SRCS "TFT_eSPI.cpp"
3-
INCLUDE_DIRS "."
4-
PRIV_REQUIRES arduino)
2+
INCLUDE_DIRS "."
3+
"Extensions"
4+
REQUIRES driver arduino-esp32
5+
)
6+
7+
8+
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-misleading-indentation")
9+
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-misleading-indentation")

Extensions/EPaper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
EPaper::EPaper() : _sleep(false), _entemp(true), _temp(16.00), _humi(50.00), _grayLevel(0), TFT_eSprite(this)
1+
EPaper::EPaper() : TFT_eSprite(this), _sleep(false), _entemp(true), _temp(16.00), _humi(50.00)
22
{
33
setColorDepth(EPD_COLOR_DEPTH);
44
createSprite(_width, _height, 1);

0 commit comments

Comments
 (0)