Closed
Description
Any Serial.print*()
command does not seem to make it to output when it is preceded by a log_X()
command, with X= e, i, d, w, v. This simple script:
#include <Arduino.h>
#include <esp_log.h>
void setup() {
Serial.begin(115200);
Serial.println("setup started ###########################################################");
log_i("%s", "some text");
log_i("%s", "more text");
log_i("%s", "even more text");
Serial.println("1");
Serial.println("2");
Serial.println("3");
Serial.println("4");
Serial.println("5");
log_e("%s", "but where are my numbers?");
}
void loop() {}
produces this output:
18:35:24.821 > setup started ###########################################################
18:35:24.821 > [I][main.cpp:8] setup(): some text
18:35:24.821 > [I][main.cpp:9] setup(): more text
18:35:24.821 > [I][main.cpp:10] setup(): even more text
18:35:24.821 > [E][main.cpp:18] setup(): but where are my numbers?
Yes, where are the numbers?
Platformio.ini:
[env:esp32dev]
platform = espressif32
board = esp32dev
framework = arduino
monitor_speed = 115200
upload_speed = 921600
upload_port = /dev/ttyUSB0
build_flags = -D CORE_DEBUG_LEVEL=5
monitor_filters =
log2file
time
default
[platformio]
description = Serial Monitor swallows print lines
Metadata
Metadata
Assignees
Labels
No labels