Browse Source

🐛 Fix SPI DMA and default mode (#23627)

Followup to #23464
Mike La Spina 2 years ago
parent
commit
7fb65309aa
No account linked to committer's email address

+ 1
- 1
Marlin/src/lcd/extui/mks_ui/tft_lvgl_configuration.cpp View File

@@ -270,7 +270,7 @@ void my_disp_flush(lv_disp_drv_t * disp, const lv_area_t * area, lv_color_t * co
270 270
   uint16_t width = area->x2 - area->x1 + 1,
271 271
           height = area->y2 - area->y1 + 1;
272 272
 
273
-  TERN_(USE_SPI_DMA_TC, disp_drv_p = disp);
273
+  disp_drv_p = disp;
274 274
 
275 275
   SPI_TFT.setWindow((uint16_t)area->x1, (uint16_t)area->y1, width, height);
276 276
 

+ 2
- 1
Marlin/src/pins/stm32f4/pins_MKS_ROBIN_NANO_V3_common.h View File

@@ -369,7 +369,8 @@
369 369
 #endif // HAS_WIRED_LCD
370 370
 
371 371
 #if HAS_TFT_LVGL_UI
372
-  #define USE_SPI_DMA_TC
372
+  // Enable SPI DMA, this requires button pins, thus no buttons. Default is DISABLED.
373
+  //#define USE_SPI_DMA_TC
373 374
 #endif
374 375
 
375 376
 #if ANY(TFT_COLOR_UI, TFT_LVGL_UI, TFT_CLASSIC_UI, HAS_WIRED_LCD)

Loading…
Cancel
Save