|
|
@ -216,7 +216,7 @@ int32_t ZCanCommnaderMaster::sendCmd(int32_t cmdid, int32_t submoduleid, int32_t |
|
|
|
uint32_t enterticket = zos_get_tick(); |
|
|
|
while (!rxdataIsReady) { |
|
|
|
if (zos_haspassedms(enterticket) > (uint32_t)overtime_ms) { |
|
|
|
ZLOGE(TAG, "sendPacketBlock timeout"); |
|
|
|
// ZLOGE(TAG, "sendPacketBlock timeout");
|
|
|
|
unregListener(cmdheader->packetindex); |
|
|
|
return err::kovertime; |
|
|
|
} |
|
|
@ -312,7 +312,7 @@ void ZCanCommnaderMaster::sendPacket(uint8_t *packet, size_t len) { |
|
|
|
suc = sendPacketSub(npacket, i, packet + i * 8, 8, OVER_TIME_MS); |
|
|
|
} |
|
|
|
if (!suc) { |
|
|
|
ZLOGE(TAG, "sendPacket fail, packet(%d:%d)", npacket, i); |
|
|
|
// ZLOGE(TAG, "sendPacket fail, packet(%d:%d)", npacket, i);
|
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|