Browse Source

update

master
zhaohe 1 month ago
parent
commit
ba8b5443b8
  1. 4
      appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp

4
appsrc/appcomponents/canchannel/com/zscanprotocol_com.cpp

@ -124,9 +124,11 @@ shared_ptr<Receipt> 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) {

Loading…
Cancel
Save