Build simple_test, but don't install
Signed-off-by: Shahbaz Youssefi <syoussefi@kinova.ca>
This commit is contained in:
parent
529ffbe0cd
commit
593a81a177
|
@ -67,6 +67,4 @@ install(FILES ${SOEM_HEADERS} ${OSAL_HEADERS} ${OSHW_HEADERS} DESTINATION ${SOEM
|
|||
|
||||
add_subdirectory(test/linux/slaveinfo)
|
||||
add_subdirectory(test/linux/eepromtool)
|
||||
if(NOT DEFINED HOST_INSTALL)
|
||||
add_subdirectory(test/linux/simple_test)
|
||||
endif()
|
||||
add_subdirectory(test/linux/simple_test)
|
||||
|
|
|
@ -9,4 +9,6 @@ elseif(UNIX)
|
|||
target_link_libraries(simple_test pthread rt)
|
||||
endif()
|
||||
|
||||
install(TARGETS simple_test DESTINATION bin)
|
||||
if(NOT DEFINED HOST_INSTALL)
|
||||
install(TARGETS simple_test DESTINATION bin)
|
||||
endif()
|
||||
|
|
|
@ -11,6 +11,7 @@
|
|||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
|
||||
#include "ethercat.h"
|
||||
|
||||
|
@ -102,7 +103,7 @@ void simpletest(char *ifname)
|
|||
{
|
||||
printf(" %2.2x", *(ec_slave[0].inputs + j));
|
||||
}
|
||||
printf(" T:%lld\r",ec_DCtime);
|
||||
printf(" T:%"PRId64"\r",ec_DCtime);
|
||||
needlf = TRUE;
|
||||
}
|
||||
osal_usleep(5000);
|
||||
|
|
Loading…
Reference in New Issue