From ba8b5443b87fe8ebcdd4757e99030437583b5d75 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Sun, 29 Jun 2025 22:50:36 +0800 Subject: [PATCH] update --- appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp b/appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp index b3aa0c9..9b3aac2 100644 --- a/appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp +++ b/appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp @@ -124,9 +124,11 @@ shared_ptr ZSCanProtocolCom::callcmd(int32_t to, int32_t cmdid, uint8_t } catch (const appexception &e) { if (e.ecode == kerr_overtime) { if (i != 0) { - logger->warn("tx [to:{}, cmd:{}, param:{}({}) ] overtime, try again %d", to, cmdid, StringUtils().bytesToString((uint8_t *)param, paramLen), paramLen, i); + logger->warn("tx [to:{}, cmd:{}, param:{}({}) ] overtime, try again {}", to, cmdid, StringUtils().bytesToString((uint8_t *)param, paramLen), paramLen, i); } + logger->warn("systemctl restart iflytoptdcan.service"); system("systemctl restart iflytoptdcan.service"); + usleep(300 * 1000); continue; } else if (e.ecode == kerr_subdevice_overtime) { if (i != 0) {