Skip to content

Commit

Permalink
LVGL followup fixing "C", etc. (MarlinFirmware#19517)
Browse files Browse the repository at this point in the history
  • Loading branch information
rhapsodyv authored and vgadreau committed Dec 9, 2020
1 parent 272d62a commit c4d078c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Marlin/src/lcd/extui/lib/mks_ui/draw_ui.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@
*/
#pragma once

#ifdef __cplusplus
extern "C" { /* C-declarations for C++ */
#endif

#include <lvgl.h>

#include <stdint.h>
Expand Down Expand Up @@ -168,6 +164,10 @@

#endif // ifdef TFT35

#ifdef __cplusplus
extern "C" { /* C-declarations for C++ */
#endif

extern char public_buf_m[100];
extern char public_buf_l[30];

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/lib/mks_ui/pic_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
*/
#pragma once

#include "../../../../inc/MarlinConfigPre.h"
#include "../../../../inc/MarlinConfig.h"

#include "../../../../libs/W25Qxx.h"

Expand Down
3 changes: 2 additions & 1 deletion Marlin/src/lcd/extui/lib/mks_ui/tft_lvgl_configuration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ void SysTick_Callback() {
OUT_WRITE(LCD_BACKLIGHT_PIN, LOW);
LCD_Clear(0x0000);

lcd_draw_logo();
TERN_(HAS_LOGO_IN_FLASH, lcd_draw_logo());

OUT_WRITE(LCD_BACKLIGHT_PIN, HIGH);
delay(2000);
Expand Down Expand Up @@ -724,6 +724,7 @@ lv_fs_res_t sd_open_cb (lv_fs_drv_t * drv, void * file_p, const char * path, lv_
if (temp) { strcpy(temp,".GCO"); }
sd_read_base_addr = lv_open_gcode_file((char *)name_buf);
sd_read_addr_offset = sd_read_base_addr;
if (sd_read_addr_offset == 0) return LV_FS_RES_NOT_EX;
return LV_FS_RES_OK;
}

Expand Down

0 comments on commit c4d078c

Please sign in to comment.