added link library gpiod

This commit is contained in:
2021-02-22 12:57:41 +01:00
parent ab1b4271ec
commit 400d5710d4
5 changed files with 29 additions and 5 deletions

View File

@ -24,7 +24,7 @@ ReturnValue_t LibgpiodTest::performPeriodicAction() {
ReturnValue_t result;
switch(testCase) {
case(testCase == TestCases::READ): {
case(TestCases::READ): {
result = gpioInterface->readGpio(gpioIds::Test_ID, &gpioState);
if (result != RETURN_OK) {
sif::debug << "LibgpiodTest::performPeriodicAction: Failed to read gpio "
@ -37,7 +37,7 @@ ReturnValue_t LibgpiodTest::performPeriodicAction() {
}
break;
}
case(testCase == TestCases::LOOPBACK): {
case(TestCases::LOOPBACK): {
}
}

View File

@ -3,6 +3,10 @@ target_sources(${TARGET_NAME} PUBLIC
LinuxLibgpioIF.cpp
)
target_link_libraries(${TARGET_NAME} PUBLIC
gpiod
)