Not all processors support buffered write()
This commit is contained in:
1 parent
4f7f8f7d7e
commit
86101770ac
4 files changed
+9
-6
No files matched your search
+5
-2
@@ -4339,18 +4339,21 @@ uint32_t TFT_eSPI::alphaBlend24(uint8_t alpha, uint32_t fgc, uint32_t bgc, uint8
|
||||
** Function name: write
|
||||
** Description: draw characters piped through serial stream
|
||||
***************************************************************************************/
|
||||
/* // Not all processors support buffered write
|
||||
#ifndef ESP8266 // Avoid ESP8266 board package bug
|
||||
size_t TFT_eSPI::write(const uint8_t *buf, size_t len)
|
||||
{
|
||||
inTransaction = true;
|
||||
|
||||
uint8_t *lbuf = (uint8_t *)buf;
|
||||
while(len--) write(*lbuf++);
|
||||
while(*lbuf !=0 && len--) write(*lbuf++);
|
||||
|
||||
inTransaction = lockTransaction;
|
||||
end_tft_write();
|
||||
return 1;
|
||||
}
|
||||
|
||||
#endif
|
||||
*/
|
||||
/***************************************************************************************
|
||||
** Function name: write
|
||||
** Description: draw characters piped through serial stream
|
||||
|
||||
Reference in new issue
Block a user