Skip to content

Commit

Permalink
testcbsdk - Print retrieved protocol version
Browse files Browse the repository at this point in the history
  • Loading branch information
cboulay committed Aug 20, 2023
1 parent 03601ec commit fa2b267
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions samples/TestCBSDK/testcbsdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ cbSdkVersion testGetVersion(void)
printf("Unable to determine instrument version\n");
}
else {
printf("Initializing Cerebus real-time interface %d.%02d.%02d.%02d (protocol cb%d.%02d)...\n", ver.major, ver.minor, ver.release, ver.beta, ver.majorp, ver.minorp);
printf("Initializing Cerebus real-time interface %d.%02d.%02d.%02d (protocol cb%d.%02d)...\n",
ver.major, ver.minor, ver.release, ver.beta, ver.majorp, ver.minorp);
}
handleResult(res);
return ver;
Expand Down Expand Up @@ -154,7 +155,10 @@ cbSdkResult testOpen(LPCSTR inst_ip, int inst_port, LPCSTR client_ip)
ver = testGetVersion();

// Summary results.
printf("%s real-time interface to %s (%d.%02d.%02d.%02d) successfully initialized\n", strConnection[conType], strInstrument[instType], ver.nspmajor, ver.nspminor, ver.nsprelease, ver.nspbeta);
printf("%s real-time interface to %s (%d.%02d.%02d.%02d; proto %d.%02d) successfully initialized\n",
strConnection[conType], strInstrument[instType],
ver.nspmajor, ver.nspminor, ver.nsprelease, ver.nspbeta,
ver.nspmajorp, ver.nspminorp);
}

return res;
Expand Down

0 comments on commit fa2b267

Please sign in to comment.