i2c_tool: add i2c_tool example test

1. add example test for i2c-tools
2. make command line arguments number configurable
This commit is contained in:
morris
2018-10-18 11:25:22 +08:00
parent 98f9a3c316
commit 2b165f99c4
7 changed files with 80 additions and 21 deletions

View File

@@ -86,8 +86,8 @@ static void initialize_console()
/* Initialize the console */
esp_console_config_t console_config = {
.max_cmdline_args = 8,
.max_cmdline_length = 256,
.max_cmdline_args = CONFIG_MAX_CMD_ARGUMENTS,
.max_cmdline_length = CONFIG_MAX_CMD_LENGTH,
#if CONFIG_LOG_COLORS
.hint_color = atoi(LOG_COLOR_CYAN)
#endif