esp_console.h init and deinit issue
Posted: Sun Mar 10, 2019 12:37 pm
In a project I'm working on I am using and In the scenario when I'm using them in the order init -> deinit -> init I get the error ESP_ERR_INVALID_STATE. Debugging shows that this is because s_tmp_line_buf is not NULL in despite being freed in the deinit function. Is this intended behavior or is this a bug?
Code: Select all
esp_err_t esp_console_init(const esp_console_config_t* config)
Code: Select all
esp_err_t esp_console_deinit()
Code: Select all
if (s_tmp_line_buf) {
return ESP_ERR_INVALID_STATE;
}