mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2025-06-23 10:07:59 +02:00
receiver callback rearranging data for mythen302
This commit is contained in:
@ -61,9 +61,20 @@ set_target_properties(slsReceiverShared PROPERTIES
|
||||
PUBLIC_HEADER "${PUBLICHEADERS}"
|
||||
)
|
||||
|
||||
add_executable(slsReceiver
|
||||
src/main.cpp
|
||||
)
|
||||
|
||||
if (SLS_USE_MYTHEN302_CTB_RECEIVER)
|
||||
add_executable(slsReceiver
|
||||
src/mainCustomized.cpp
|
||||
)
|
||||
add_definitions(
|
||||
-DMYTHEN302
|
||||
)
|
||||
else()
|
||||
add_executable(slsReceiver
|
||||
src/main.cpp
|
||||
)
|
||||
endif (SLS_USE_MYTHEN302_CTB_RECEIVER)
|
||||
|
||||
set_target_properties(slsReceiver PROPERTIES
|
||||
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin
|
||||
)
|
||||
|
@ -44,13 +44,16 @@ slsReceiver::slsReceiver(int argc, char *argv[]):
|
||||
int c = 0;
|
||||
|
||||
while ( c != -1 ){
|
||||
c = getopt_long (argc, argv, "hvf:t:", long_options, &option_index);
|
||||
c = getopt_long (argc, argv, "hvf:t:o:", long_options, &option_index);
|
||||
|
||||
// Detect the end of the options.
|
||||
if (c == -1)
|
||||
break;
|
||||
|
||||
switch(c){
|
||||
// reserved for ctb receiver users
|
||||
case 'o':
|
||||
break;
|
||||
|
||||
case 't':
|
||||
sscanf(optarg, "%d", &tcpip_port_no);
|
||||
|
Reference in New Issue
Block a user