mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-08 04:02:27 +00:00
fix(console): fixed secondary console not working on all chips without VFS
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2016-2024 Espressif Systems (Shanghai) CO LTD
|
||||
* SPDX-FileCopyrightText: 2016-2025 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
@@ -9,6 +9,7 @@
|
||||
#include "sdkconfig.h"
|
||||
#include "esp_cpu.h"
|
||||
#include "esp_rom_uart.h"
|
||||
#include "esp_system_console.h"
|
||||
#include "esp_private/esp_clk.h"
|
||||
|
||||
static uint32_t s_test_start, s_test_stop;
|
||||
@@ -16,11 +17,11 @@ static uint32_t s_test_start, s_test_stop;
|
||||
void unity_putc(int c)
|
||||
{
|
||||
if (c == '\n') {
|
||||
esp_rom_output_tx_one_char('\r');
|
||||
esp_rom_output_tx_one_char('\n');
|
||||
esp_system_console_put_char('\r');
|
||||
esp_system_console_put_char('\n');
|
||||
} else if (c == '\r') {
|
||||
} else {
|
||||
esp_rom_output_tx_one_char(c);
|
||||
esp_system_console_put_char(c);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user