remove logging
This commit is contained in:
parent
39f5cab032
commit
9fd0d62963
|
@ -193,28 +193,23 @@ int TIsoTcpSocket::isoConnect()
|
|||
Result =CheckPDU(ControlPDU, pdu_type_CR);
|
||||
if (Result!=0)
|
||||
return Result;
|
||||
printf("Checked PDU\n");
|
||||
|
||||
Result =SckConnect();
|
||||
printf("Socket build with Result=%d!\n", Result);
|
||||
if (Result==noError)
|
||||
{
|
||||
// Calcs the length
|
||||
Length =PDUSize(ControlPDU);
|
||||
// Send connection telegram
|
||||
SendPacket(ControlPDU, Length);
|
||||
printf("Sent packet with LastTcpError=%d\n",LastTcpError);
|
||||
if (LastTcpError==0)
|
||||
{
|
||||
TmpControlPDU = pbyte(ControlPDU);
|
||||
// Receives TPKT header (4 bytes)
|
||||
RecvPacket(TmpControlPDU, sizeof(TTPKT));
|
||||
printf("Received packet with LastTcpError=%d\n",LastTcpError);
|
||||
if (LastTcpError==0)
|
||||
{
|
||||
// Calc the packet length
|
||||
Length =PDUSize(TmpControlPDU);
|
||||
printf("PDU size=%d\n",Length);
|
||||
// Check if it fits in the buffer and if it's greater then TTPKT size
|
||||
if ((Length<=sizeof(TIsoControlPDU)) && (Length>sizeof(TTPKT)))
|
||||
{
|
||||
|
@ -223,12 +218,10 @@ int TIsoTcpSocket::isoConnect()
|
|||
Length -= sizeof(TTPKT);
|
||||
// Receives remainin bytes 4 bytes after
|
||||
RecvPacket(TmpControlPDU, Length);
|
||||
printf("Received packet again with LastTcpError=%d\n",LastTcpError);
|
||||
if (LastTcpError==0)
|
||||
{
|
||||
// Finally checks the Connection Confirm telegram
|
||||
Result =CheckPDU(ControlPDU, pdu_type_CC);
|
||||
printf("Checked PDU with Result=%d\n",Result);
|
||||
if (Result!=0)
|
||||
LastIsoError=Result;
|
||||
}
|
||||
|
|
|
@ -7,8 +7,8 @@ MAKEFLAGS += --no-print-directory
|
|||
|
||||
support :=kd233 stm32f407-st-discovery maix-go stm32f407zgt6 aiit-riscv64-board aiit-arm32-board hifive1-rev-B hifive1-emulator k210-emulator cortex-m3-emulator cortex-m4-emulator ok1052-c gapuino stm32f103-nano gd32vf103_rvstar cortex-m0-emulator
|
||||
SRC_DIR:=
|
||||
# kd233
|
||||
export BOARD ?=ok1052-c
|
||||
|
||||
export BOARD ?=kd233
|
||||
|
||||
ifeq ($(filter $(BOARD),$(support)),)
|
||||
$(warning "You should choose board like this:make BOARD=kd233")
|
||||
|
|
Loading…
Reference in New Issue