Debug balast

This commit is contained in:
2021-09-05 19:37:51 +02:00
parent 01ccd0c262
commit afc3a17d38
4 changed files with 6 additions and 4 deletions

View File

@@ -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})

1
TODO Normal file
View File

@@ -0,0 +1 @@
Code 0x41 A1 stage lookup in RS PRO problem

View File

@@ -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);

View File

@@ -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