Skip to content

Commit

Permalink
Plastic surgery
Browse files Browse the repository at this point in the history
Relates to [CANAPI-80]
  • Loading branch information
uv-software committed Apr 8, 2024
1 parent 2a22b90 commit 4fde063
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Trial/Sources/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ int main(int argc, const char * argv[]) {
fprintf(stderr, "+++ error: myDriver.GetProperty(CANPROP_GET_PATCH_NO) returned %i\n", retVal);
retVal = myDriver.GetProperty(CANPROP_GET_BUILD_NO, (void *)&u32Val, sizeof(uint32_t));
if (retVal == CCanApi::NoError)
fprintf(stdout, ">>> myDriver.GetProperty(CANPROP_GET_BUILD_NO): value = 0x%07" PRIx32 "\n", u32Val);
fprintf(stdout, ">>> myDriver.GetProperty(CANPROP_GET_BUILD_NO): value = %07" PRIx32 "\n", u32Val);
else
fprintf(stderr, "+++ error: myDriver.GetProperty(CANPROP_GET_BUILD_NO) returned %i\n", retVal);
retVal = myDriver.GetProperty(CANPROP_GET_LIBRARY_ID, (void *)&i32Val, sizeof(int32_t));
Expand Down Expand Up @@ -344,7 +344,8 @@ int main(int argc, const char * argv[]) {
bool result = CCanDriver::GetFirstChannel(info);
while (result) {
retVal = CCanDriver::ProbeChannel(info.m_nChannelNo, opMode, state);
fprintf(stdout, ">>> CCanAPI::ProbeChannel(%i): state = %s", info.m_nChannelNo,
fprintf(stdout, ">>> CCanAPI::ProbeChannel(%i): %s = %s",
info.m_nChannelNo, info.m_szDeviceName,
(state == CCanApi::ChannelOccupied) ? "occupied" :
(state == CCanApi::ChannelAvailable) ? "available" :
(state == CCanApi::ChannelNotAvailable) ? "not available" : "not testable");
Expand Down

0 comments on commit 4fde063

Please sign in to comment.