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();