From afc3a17d38b204fe1fdabe8560ce04777e4638b0 Mon Sep 17 00:00:00 2001 From: Jaro Date: Sun, 5 Sep 2021 19:37:51 +0200 Subject: [PATCH] Debug balast --- CMakeLists.txt | 5 +++-- TODO | 1 + YmodemFileReceive.cpp | 2 +- openwrt/Makefile | 2 +- 4 files changed, 6 insertions(+), 4 deletions(-) create mode 100644 TODO diff --git a/CMakeLists.txt b/CMakeLists.txt index bdf71a9..82cbc01 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -5,15 +5,16 @@ project(TEST) ## Target set(CMAKE_CXX_STANDARD 11) set(TEST_SRCS main.cpp TimeoutSerial.cpp Ymodem.cpp YmodemFileReceive.cpp) -add_definitions(-DBOOST_LOG_DYN_LINK) +#add_definitions(-DBOOST_LOG_DYN_LINK) add_executable(usbserial-dw ${TEST_SRCS}) ## Link libraries +#set(Boost_USE_STATIC_LIBS ON) set(BOOST_LIBS date_time system log program_options) find_package(Boost COMPONENTS ${BOOST_LIBS} REQUIRED) target_link_libraries(usbserial-dw ${Boost_LIBRARIES}) find_package(Threads REQUIRED) -target_link_libraries(usbserial-dw ${CMAKE_THREAD_LIBS_INIT}) +##target_link_libraries(usbserial-dw ${CMAKE_THREAD_LIBS_INIT}) ## Install install(TARGETS usbserial-dw DESTINATION ${CMAKE_INSTALL_BINDIR}) \ No newline at end of file diff --git a/TODO b/TODO new file mode 100644 index 0000000..4d3a681 --- /dev/null +++ b/TODO @@ -0,0 +1 @@ +Code 0x41 A1 stage lookup in RS PRO problem \ No newline at end of file diff --git a/YmodemFileReceive.cpp b/YmodemFileReceive.cpp index ea42cb6..855a037 100644 --- a/YmodemFileReceive.cpp +++ b/YmodemFileReceive.cpp @@ -146,7 +146,7 @@ Ymodem::Code YmodemFileReceive::callback(Status status, uint8_t *buff, uint32_t fileCount = 0; - BOOST_LOG_TRIVIAL(debug) << "File open: " << filePath + fileName ; + BOOST_LOG_TRIVIAL(debug) << "File open: " << filePath + fileName << " Size:" << fileSize << " Original: " << name; file.open(filePath + fileName, ios::out | ios::binary); diff --git a/openwrt/Makefile b/openwrt/Makefile index e24c1d3..c0410e3 100644 --- a/openwrt/Makefile +++ b/openwrt/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=usbserial-dw PKG_VERSION:=0.2.4 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE_PROTO:=git PKG_SOURCE_URL:=https://git.bh.ttx.sk/jaro/usbserial-dw.git