Browse Source

V606

master
zhaohe 7 months ago
parent
commit
321d2dddc1
  1. 6
      sdk/components/sensors/smtp2_v2/smtp2_v2.cpp

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

Loading…
Cancel
Save