From 321d2dddc111fc8bd5cc8639abb3c0de6a884a92 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sat, 28 Dec 2024 21:24:52 +0800 Subject: [PATCH] V606 --- sdk/components/sensors/smtp2_v2/smtp2_v2.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sdk/components/sensors/smtp2_v2/smtp2_v2.cpp b/sdk/components/sensors/smtp2_v2/smtp2_v2.cpp index b6b44ee..d89bbe2 100644 --- a/sdk/components/sensors/smtp2_v2/smtp2_v2.cpp +++ b/sdk/components/sensors/smtp2_v2/smtp2_v2.cpp @@ -13,8 +13,8 @@ using namespace smtp2; #define OVERTIME 100 #define DUMP_HEX 1 -#define RE_SEND_TIMES 3 -#define RE_SEND_DELAY 800 +#define RE_SEND_TIMES 5 +#define RE_SEND_DELAY 400 // 模式2 void SMTP2V2::initialize(UART_HandleTypeDef* uart, uint8_t id, DMA_HandleTypeDef* hdma_rx, DMA_HandleTypeDef* hdma_tx) { @@ -396,7 +396,7 @@ int32_t SMTP2V2::_runaction(bool dump, const char* cmd) { if (!_sendcmd(dump, "/1CR\r")) continue; if (!_sendcmd(dump, cmd)) continue; - + return getAckEcode(); } return getAckEcode();