You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
since sporadically, I have some problems with my SPI communication on an esp8266 device, I was looking into the code to see if there are some unbalanced calls to TFT_RD_HIGH(), TFT_RD_LOW(), SPI_CS_LOW() and _HIGH(), and so on. You get the idea.
While I do not think this is related to my problem, from looking at the code, I believe that the TFT_RD_HIGH() here:
), before an #if defined(AVR). The TFT_RD_HIGH in line 2178 is inside the #else block of that #if. Thus, if AVR is defined, the TFT_RD_HIGH is not executed.
Unfortunately, I do not have an AVR with a corresponding TFT, so I cannot do some tests on my own.
Hello,
since sporadically, I have some problems with my SPI communication on an esp8266 device, I was looking into the code to see if there are some unbalanced calls to TFT_RD_HIGH(), TFT_RD_LOW(), SPI_CS_LOW() and _HIGH(), and so on. You get the idea.
While I do not think this is related to my problem, from looking at the code, I believe that the TFT_RD_HIGH() here:
Adafruit-GFX-Library/Adafruit_SPITFT.cpp
Line 2178 in f542ec2
is not correctly balanced with its corresponding TFT_RD_LOW().
Why?
The TFT_RD_LOW is on line 2151, (
Adafruit-GFX-Library/Adafruit_SPITFT.cpp
Line 2151 in f542ec2
Unfortunately, I do not have an AVR with a corresponding TFT, so I cannot do some tests on my own.
My recommendation is to exchanges lines 2178 (
Adafruit-GFX-Library/Adafruit_SPITFT.cpp
Line 2178 in f542ec2
Adafruit-GFX-Library/Adafruit_SPITFT.cpp
Line 2179 in f542ec2
Do you agree on this?
EDIT: If you agree on this, I can send a PR.
The text was updated successfully, but these errors were encountered: