Skip to content

Commit e2531f2

Browse files
committed
提高阅读性,统一代码规范
1 parent 1eac9e5 commit e2531f2

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

examples/ai_voice_display_oled/display.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Display::Display(esp_lcd_panel_io_handle_t panel_io, esp_lcd_panel_handle_t pane
3232
.mirror_x = mirror_x,
3333
.mirror_y = mirror_y,
3434
},
35-
.color_format=LV_COLOR_FORMAT_UNKNOWN,
35+
.color_format = LV_COLOR_FORMAT_UNKNOWN,
3636
.flags =
3737
{
3838
.buff_dma = 1,
@@ -58,11 +58,11 @@ void Display::Start() {
5858

5959
// 自适应布局计算
6060
// 基于屏幕尺寸计算合适的布局参数
61-
int status_bar_height=1;
62-
int content_left_width=1;
63-
int emotion_top_padding=1;
64-
int chat_message_top_padding=1;
65-
const lv_font_t* emotion_font=&font_awesome_14_1;
61+
int status_bar_height = 1;
62+
int content_left_width = 1;
63+
int emotion_top_padding = 1;
64+
int chat_message_top_padding = 1;
65+
const lv_font_t* emotion_font = &font_awesome_14_1;
6666

6767
// 根据屏幕高度自适应调整布局
6868
if (height_ <= 32) {

0 commit comments

Comments
 (0)