diff --git a/components/FluxButton/Flux_Button.c b/components/FluxButton/Flux_Button.c index 2d19ab2..1c0dca0 100644 --- a/components/FluxButton/Flux_Button.c +++ b/components/FluxButton/Flux_Button.c @@ -45,7 +45,7 @@ static void button_event_cb(void *arg, void *data) POWER_OFF; break; case BUTTON_CMD_LCD_BACKLIGHT_CHANGE: - #ifdef USE_LCD_BACKLIGHT_CLOSE + #if USE_LCD_BACKLIGHT_CLOSE /* 单击电源键事件 */ ESP_LOGI(S_BUTTON_TAG, "LCD backlight change"); /* Toggle backlight based on current backlight state */ diff --git a/components/FluxButton/Flux_Button.h b/components/FluxButton/Flux_Button.h index 482046f..e1701ca 100644 --- a/components/FluxButton/Flux_Button.h +++ b/components/FluxButton/Flux_Button.h @@ -49,7 +49,7 @@ extern "C" { /* 定义按键支持休眠 */ #define CONFIG_GPIO_BUTTON_SUPPORT_POWER_SAVE (0) -#define USE_LCD_BACKLIGHT_CLOSE (1) +#define USE_LCD_BACKLIGHT_CLOSE (0) /** * @brief 按键命令枚举