From 9757cd58b49db7604f6aba0483937b505c0f9497 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 8 Jun 2024 12:49:25 +0800 Subject: [PATCH] update --- components/sensors/smtp2/smtp2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/components/sensors/smtp2/smtp2.cpp b/components/sensors/smtp2/smtp2.cpp index 11b048f..0f3d380 100644 --- a/components/sensors/smtp2/smtp2.cpp +++ b/components/sensors/smtp2/smtp2.cpp @@ -354,7 +354,7 @@ int32_t SMTP2::_sendcmd(const char* cmd, size_t txlen, char* rxbuf, size_t rxbuf #ifdef DUMP_HEX if (strcmp("/1Q\r", cmd) != 0) { - ZLOGI_NOT_END_LINE(TAG, "tx:%s", cmd); + ZLOGI(TAG, "tx:%s", cmd); } #endif @@ -365,7 +365,7 @@ int32_t SMTP2::_sendcmd(const char* cmd, size_t txlen, char* rxbuf, size_t rxbuf #ifdef DUMP_HEX if (strcmp("/1Q\r", cmd) != 0) { - ZLOGI_NOT_END_LINE(TAG, "rx:%s", m_rxbuf); + ZLOGI(TAG, "rx:%s", m_rxbuf); } #endif return ret; @@ -401,7 +401,7 @@ int32_t SMTP2::_sendcmd_dma(const char* cmd, size_t txlen, char* rxbuf, size_t r int32_t SMTP2::_sendcmd_block(const char* cmd, size_t txlen, char* rxbuf, size_t rxbuflen, size_t& rxlen) { // m_huart->tx(cmd); memset(rxbuf, 0, rxbuflen); - // printf("tx:%s\n", cmd); + printf("tx:%s\n", cmd); HAL_UART_Transmit(m_uart, (uint8_t*)cmd, txlen, 1000); int rxnum = 0;