mirror of
https://github.com/esphome/esphome.git
synced 2026-06-24 14:19:03 +00:00
[nrf52,logger] fix printk (#13874)
This commit is contained in:
committed by
Jesse Hills
parent
c1455ccc29
commit
a5dc4b0fce
@@ -68,7 +68,7 @@ void HOT Logger::write_msg_(const char *msg, size_t len) {
|
||||
#ifdef CONFIG_PRINTK
|
||||
// Requires the debug component and an active SWD connection.
|
||||
// It is used for pyocd rtt -t nrf52840
|
||||
k_str_out(const_cast<char *>(msg), len);
|
||||
printk("%.*s", static_cast<int>(len), msg);
|
||||
#endif
|
||||
if (this->uart_dev_ == nullptr) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user