Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Jan 28, 2025
1 parent 6cdfc2b commit e43c7b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lgfx/v1/platforms/esp32/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1608,7 +1608,7 @@ namespace lgfx
if (_need_reinit) {
int sda = _pin_backup[SEARCH_SDA_IDX].getPin();
int scl = _pin_backup[SEARCH_SCL_IDX].getPin();
#if defined ( ARDUINO )
#if defined ( ARDUINO ) && __has_include (<Wire.h>)
if (_twowire) {
_twowire->begin(sda, scl);
}
Expand Down
2 changes: 1 addition & 1 deletion src/lgfx/v1/platforms/esp32/common.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Original Source:

#if __has_include(<esp_memory_utils.h>)
#include <esp_memory_utils.h>
#else
#elif __has_include(<soc/soc_memory_types.h>)
#include <soc/soc_memory_types.h>
#endif

Expand Down

0 comments on commit e43c7b7

Please sign in to comment.