Преглед изворни кода

LVGL followup fixing "C", etc. (#19517)

Victor Oliveira пре 3 година
родитељ
комит
6572d7131f
No account linked to committer's email address

+ 4
- 4
Marlin/src/lcd/extui/lib/mks_ui/draw_ui.h Прегледај датотеку

@@ -21,10 +21,6 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#ifdef __cplusplus
25
-  extern "C" { /* C-declarations for C++ */
26
-#endif
27
-
28 24
 #include <lvgl.h>
29 25
 
30 26
 #include <stdint.h>
@@ -168,6 +164,10 @@
168 164
 
169 165
 #endif // ifdef TFT35
170 166
 
167
+#ifdef __cplusplus
168
+  extern "C" { /* C-declarations for C++ */
169
+#endif
170
+
171 171
 extern char public_buf_m[100];
172 172
 extern char public_buf_l[30];
173 173
 

+ 1
- 1
Marlin/src/lcd/extui/lib/mks_ui/pic_manager.h Прегледај датотеку

@@ -21,7 +21,7 @@
21 21
  */
22 22
 #pragma once
23 23
 
24
-#include "../../../../inc/MarlinConfigPre.h"
24
+#include "../../../../inc/MarlinConfig.h"
25 25
 
26 26
 #include "../../../../libs/W25Qxx.h"
27 27
 

+ 2
- 1
Marlin/src/lcd/extui/lib/mks_ui/tft_lvgl_configuration.cpp Прегледај датотеку

@@ -408,7 +408,7 @@ void SysTick_Callback() {
408 408
       OUT_WRITE(LCD_BACKLIGHT_PIN, LOW);
409 409
       LCD_Clear(0x0000);
410 410
 
411
-      lcd_draw_logo();
411
+      TERN_(HAS_LOGO_IN_FLASH, lcd_draw_logo());
412 412
 
413 413
       OUT_WRITE(LCD_BACKLIGHT_PIN, HIGH);
414 414
       delay(2000);
@@ -724,6 +724,7 @@ lv_fs_res_t sd_open_cb (lv_fs_drv_t * drv, void * file_p, const char * path, lv_
724 724
   if (temp) { strcpy(temp,".GCO"); }
725 725
   sd_read_base_addr = lv_open_gcode_file((char *)name_buf);
726 726
   sd_read_addr_offset = sd_read_base_addr;
727
+  if (sd_read_addr_offset == 0) return LV_FS_RES_NOT_EX;
727 728
   return LV_FS_RES_OK;
728 729
 }
729 730
 

Loading…
Откажи
Сачувај