feat(lcd): add boundary performance test
This commit is contained in:
@@ -577,6 +577,20 @@ static void handle_log_command(size_t argc, char *argv[])
|
||||
}
|
||||
}
|
||||
|
||||
static void handle_lcd_test(void)
|
||||
{
|
||||
const domain_expression_request_t request = {
|
||||
.id = DOMAIN_EXPRESSION_LCD_BOUNDARY_TEST,
|
||||
.trigger = DOMAIN_EXPRESSION_TRIGGER_FACTORY_LCD_TEST,
|
||||
};
|
||||
esp_err_t err = domain_runtime_request_expression(&request);
|
||||
if (err != ESP_OK) {
|
||||
cli_write_error("lcd_test_failed");
|
||||
return;
|
||||
}
|
||||
cli_write_ok();
|
||||
}
|
||||
|
||||
static void handle_command_line(char *line)
|
||||
{
|
||||
trim_text(line);
|
||||
@@ -661,6 +675,8 @@ static void handle_command_line(char *line)
|
||||
handle_prepare_rotate(key_version);
|
||||
} else if (strcmp(cmd, "log") == 0) {
|
||||
handle_log_command(argc, argv);
|
||||
} else if (strcmp(cmd, "lcd_test") == 0) {
|
||||
handle_lcd_test();
|
||||
} else {
|
||||
cli_write_error("unknown_command");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user