Skip to content

Commit 27d241a

Browse files
committed
Fix RISC-V build
1 parent 2152bbd commit 27d241a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/NimBLEStream.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,11 @@ int uart_log_printfv(const char* format, va_list arg) {
472472

473473
int wlen = vsnprintf(temp, len + 1, format, arg);
474474
for (int i = 0; i < wlen; i++) {
475+
# if defined(CONFIG_IDF_TARGET_ESP32) || defined(CONFIG_IDF_TARGET_ESP32S3)
475476
ets_write_char_uart(temp[i]);
477+
# else
478+
esp_rom_output_to_channels(temp[i]);
479+
# endif
476480
}
477481

478482
if (len >= sizeof(loc_buf)) {

0 commit comments

Comments
 (0)