debug
This commit is contained in:
parent
293cb53c53
commit
55feb0f2df
|
@ -35,6 +35,9 @@ extern fifo_buffer<CANTxFrame, 1024> txCanBuffer;
|
|||
#define DEFAULT_SIM_RPM 1200
|
||||
#define DEFAULT_SNIFFER_THR 2500
|
||||
|
||||
//!!!
|
||||
#define DEBUG_BENCH TRUE
|
||||
|
||||
extern WaveChart waveChart;
|
||||
|
||||
int getRemainingStack(thread_t*) {
|
||||
|
@ -261,11 +264,19 @@ void handleWrapCan(TsChannelBase* tsChannel, char *data, int incomingPacketSize)
|
|||
if (numPackets > 0) {
|
||||
txCanBuffer.clear();
|
||||
}
|
||||
|
||||
#ifdef DEBUG_BENCH
|
||||
printf("------ numPackets=%d\n", numPackets);
|
||||
#endif
|
||||
|
||||
for (int i = 0; i < numPackets && incomingPacketSize >= (int)sizeof(CANRxFrame); i++) {
|
||||
CANRxFrame rxFrame;
|
||||
memcpy(&rxFrame, data, sizeof(rxFrame));
|
||||
|
||||
#ifdef DEBUG_BENCH
|
||||
printf(" * EID=%08x\n", rxFrame.EID);
|
||||
#endif
|
||||
|
||||
processCanRxMessage(0, rxFrame, getTimeNowNt());
|
||||
|
||||
data += sizeof(rxFrame);
|
||||
|
|
Loading…
Reference in New Issue