Skip to content

Commit 28b9487

Browse files
authored
[nrf52,logger] fix printk (esphome#13874)
1 parent 41fedae commit 28b9487

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esphome/components/logger/logger_zephyr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void HOT Logger::write_msg_(const char *msg, uint16_t len) {
6868
#ifdef CONFIG_PRINTK
6969
// Requires the debug component and an active SWD connection.
7070
// It is used for pyocd rtt -t nrf52840
71-
k_str_out(const_cast<char *>(msg), len);
71+
printk("%.*s", static_cast<int>(len), msg);
7272
#endif
7373
if (this->uart_dev_ == nullptr) {
7474
return;

0 commit comments

Comments
 (0)