|
|
@ -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; |
|
|
|