修复重新亮屏后的亮度过高问题
This commit is contained in:
parent
a2605479a5
commit
a9b123c6f5
@ -58,7 +58,7 @@ extern "C" {
|
||||
*
|
||||
* 用于快捷开启LCD背光
|
||||
*/
|
||||
#define LCD_BACKLIGHT_OPEN ESP_ERROR_CHECK(ledc_set_duty(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_0, 100));\
|
||||
#define LCD_BACKLIGHT_OPEN ESP_ERROR_CHECK(ledc_set_duty(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_0, 7222));\
|
||||
ESP_ERROR_CHECK(ledc_update_duty(LEDC_LOW_SPEED_MODE, LEDC_CHANNEL_0));
|
||||
|
||||
/**
|
||||
|
||||
@ -359,6 +359,12 @@ esp_err_t ModbusRTU_Send_0306(uart_port_t uart_num, struct ModbusRTU_Frame *fram
|
||||
lv_textarea_add_char(ui_pageFluxDebug_textAreaContent,'\n');
|
||||
lv_textarea_add_text(ui_pageFluxDebug_textAreaContent,"Send:");
|
||||
lv_textarea_add_text(ui_pageFluxDebug_textAreaContent,(char*)text);
|
||||
|
||||
#if LOG_RECORD_ENABLE
|
||||
example_write_log("ModbusRTU_Send_0306 数据发送成功。");
|
||||
example_write_log(text);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
return ESP_OK;
|
||||
@ -451,6 +457,10 @@ esp_err_t RefreshResult(void)
|
||||
lv_label_set_text(ui_pageHome_labelResultCompare,"Pass!");
|
||||
}
|
||||
|
||||
#if LOG_RECORD_ENABLE
|
||||
example_write_log("RefreshResult 结果刷新完毕");
|
||||
#endif
|
||||
|
||||
return ESP_OK;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user