mirror of https://github.com/arendst/Tasmota.git
uDisplay force cache writes to RGB display on ESP32S3 (#22222)
This commit is contained in:
parent
75001a024d
commit
59c8d39724
|
@ -15,6 +15,7 @@ All notable changes to this project will be documented in this file.
|
|||
### Fixed
|
||||
- ESP32 Range Extender compile error with core 3.0.0 (#22205)
|
||||
- HASPmota error when page '1' is not defined
|
||||
- uDisplay force cache writes to RGB display on ESP32S3
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -2282,14 +2282,11 @@ void uDisplay::pushColors(uint16_t *data, uint16_t len, boolean not_swapped) {
|
|||
}
|
||||
}
|
||||
uint16_t * flush_ptr = rgb_fb + (int32_t)seta_yp1 * _width + seta_xp1;
|
||||
esp_cache_msync(flush_ptr, (seta_xp2 - seta_xp1) * 2, 0);
|
||||
Cache_WriteBack_Addr((uint32_t)flush_ptr, (seta_xp2 - seta_xp1) * 2);
|
||||
fb_y += _width;
|
||||
seta_yp1++;
|
||||
if (!lenc) break;
|
||||
}
|
||||
// using esp_cache_msync() to flush the PSRAM cache and ensure that all data is actually written to PSRAM
|
||||
// from https://github.com/espressif/esp-idf/blob/636ff35b52f10e1a804a3760a5bd94e68f4b1b71/components/esp_lcd/rgb/esp_lcd_panel_rgb.c#L159
|
||||
|
||||
}
|
||||
#endif
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue