mirror of
https://github.com/ratspeak/ratdeck.git
synced 2026-08-15 23:30:08 +00:00
Add link-based LXMF delivery, fix display SPI contention
Display: switch pushPixelsDMA to blocking pushPixels to prevent SPI bus contention between the display and SX1262 radio on the shared FSPI bus. LXMF: add opportunistic-first delivery with background link upgrade. First message to a peer sends immediately via opportunistic packet. A link is established in the background; subsequent messages use the link when active (prepending dest_hash for Python DIRECT format), falling back to opportunistic otherwise. No user-facing delay.
This commit is contained in:
+2
-1
@@ -11,7 +11,8 @@ static void lvgl_flush_cb(lv_disp_drv_t* drv, const lv_area_t* area, lv_color_t*
|
||||
uint32_t h = area->y2 - area->y1 + 1;
|
||||
s_gfx->startWrite();
|
||||
s_gfx->setAddrWindow(area->x1, area->y1, w, h);
|
||||
s_gfx->pushPixelsDMA((lgfx::swap565_t*)&color_p->full, w * h);
|
||||
// Blocking pushPixels prevents SPI bus contention with SX1262 radio on shared FSPI bus
|
||||
s_gfx->pushPixels((lgfx::swap565_t*)&color_p->full, w * h);
|
||||
s_gfx->endWrite();
|
||||
lv_disp_flush_ready(drv);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user