Skip to content

Commit fc35560

Browse files
authored
fix compiling errors (#1161)
1 parent 5d3f597 commit fc35560

File tree

4 files changed

+12
-15
lines changed

4 files changed

+12
-15
lines changed

main/Kconfig.projbuild

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -428,24 +428,24 @@ endchoice
428428
choice DISPLAY_ESP32S3_KORVO2_V3
429429
depends on BOARD_TYPE_ESP32S3_KORVO2_V3
430430
prompt "ESP32S3_KORVO2_V3 LCD Type"
431-
default LCD_ST7789
431+
default ESP32S3_KORVO2_V3_LCD_ST7789
432432
help
433433
屏幕类型选择
434-
config LCD_ST7789
434+
config ESP32S3_KORVO2_V3_LCD_ST7789
435435
bool "ST7789, 分辨率240*280"
436-
config LCD_ILI9341
436+
config ESP32S3_KORVO2_V3_LCD_ILI9341
437437
bool "ILI9341, 分辨率240*320"
438438
endchoice
439439

440440
choice DISPLAY_ESP32S3_AUDIO_BOARD
441441
depends on BOARD_TYPE_ESP32S3_AUDIO_BOARD
442442
prompt "ESP32S3_AUDIO_BOARD LCD Type"
443-
default LCD_JD9853
443+
default AUDIO_BOARD_LCD_JD9853
444444
help
445445
屏幕类型选择
446-
config LCD_JD9853
446+
config AUDIO_BOARD_LCD_JD9853
447447
bool "JD9853, 分辨率320*172"
448-
config LCD_ST7789
448+
config AUDIO_BOARD_LCD_ST7789
449449
bool "ST7789, 分辨率240*320"
450450
endchoice
451451

main/boards/esp32s3-korvo2-v3/config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
#define VOLUME_UP_BUTTON_GPIO GPIO_NUM_NC
2727
#define VOLUME_DOWN_BUTTON_GPIO GPIO_NUM_NC
2828

29-
#ifdef CONFIG_LCD_ST7789
29+
#ifdef CONFIG_ESP32S3_KORVO2_V3_LCD_ST7789
3030
#define DISPLAY_SDA_PIN GPIO_NUM_NC
3131
#define DISPLAY_SCL_PIN GPIO_NUM_NC
3232
#define DISPLAY_WIDTH 280
@@ -40,7 +40,7 @@
4040
#define DISPLAY_OFFSET_Y 0
4141
#endif
4242

43-
#ifdef CONFIG_LCD_ILI9341
43+
#ifdef CONFIG_ESP32S3_KORVO2_V3_LCD_ILI9341
4444
#define LCD_TYPE_ILI9341_SERIAL
4545
#define DISPLAY_SDA_PIN GPIO_NUM_NC
4646
#define DISPLAY_SCL_PIN GPIO_NUM_NC
@@ -78,4 +78,4 @@
7878
#define CAMERA_PIN_PCLK 11
7979

8080
#define XCLK_FREQ_HZ 20000000
81-
#endif // _BOARD_CONFIG_H_
81+
#endif // _BOARD_CONFIG_H_

main/boards/waveshare-s3-audio-board/config.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262

6363

6464

65-
#ifdef CONFIG_LCD_JD9853
65+
#ifdef CONFIG_AUDIO_BOARD_LCD_JD9853
6666
#define LCD_TYPE_JD9853_SERIAL
6767
#define DISPLAY_WIDTH 320
6868
#define DISPLAY_HEIGHT 172
@@ -76,7 +76,7 @@
7676
#define DISPLAY_OFFSET_Y 0
7777
#endif
7878

79-
#ifdef CONFIG_LCD_ST7789
79+
#ifdef CONFIG_AUDIO_BOARD_LCD_ST7789
8080
#define LCD_TYPE_ST7789_SERIAL
8181
#define DISPLAY_WIDTH 240
8282
#define DISPLAY_HEIGHT 320
@@ -92,4 +92,4 @@
9292

9393

9494

95-
#endif // _BOARD_CONFIG_H_
95+
#endif // _BOARD_CONFIG_H_

main/display/lcd_display.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -636,9 +636,6 @@ void LcdDisplay::SetPreviewImage(const lv_img_dsc_t* img_dsc) {
636636
// Create the image object inside the bubble
637637
lv_obj_t* preview_image = lv_image_create(img_bubble);
638638

639-
// Create the image object inside the bubble
640-
lv_obj_t* preview_image = lv_image_create(img_bubble);
641-
642639
// Copy the image descriptor and data to avoid source data changes
643640
lv_img_dsc_t* copied_img_dsc = (lv_img_dsc_t*)heap_caps_malloc(sizeof(lv_img_dsc_t), MALLOC_CAP_8BIT);
644641
if (copied_img_dsc == nullptr) {

0 commit comments

Comments
 (0)