From 9fd0d629636111a78eb1659f302fd0b28d7d8917 Mon Sep 17 00:00:00 2001 From: Forsworns <378974295@qq.com> Date: Tue, 15 Feb 2022 15:26:39 +0800 Subject: [PATCH] remove logging --- .../control/plc/interoperability/s7/s7_isotcp.cpp | 7 ------- Ubiquitous/XiUOS/Makefile | 4 ++-- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/APP_Framework/Framework/control/plc/interoperability/s7/s7_isotcp.cpp b/APP_Framework/Framework/control/plc/interoperability/s7/s7_isotcp.cpp index f0390bfe3..4c8dab3fc 100644 --- a/APP_Framework/Framework/control/plc/interoperability/s7/s7_isotcp.cpp +++ b/APP_Framework/Framework/control/plc/interoperability/s7/s7_isotcp.cpp @@ -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; } diff --git a/Ubiquitous/XiUOS/Makefile b/Ubiquitous/XiUOS/Makefile index 82913424c..51b129141 100755 --- a/Ubiquitous/XiUOS/Makefile +++ b/Ubiquitous/XiUOS/Makefile @@ -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")