- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Why the Initialization statement "psm->Init() < PXC_STATUS_NO_ERROR" always gets the true result?
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If it's working fine, that should evaluate to false, not true. Only if there is some error will it evaluate to true.
Why: PXC_STATUS_NO_ERROR will be given an internal numeric value, say 0. All the other error codes will then have the value of -1,-2,-3 etc, so if the status is something other than NO_ERROR (ie, less than 0) it will evaluate as true then you can handle the error inside the if block. You can find a list of the possible statuses here: https://software.intel.com/sites/landingpage/realsense/camera-sdk/v1.1/documentation/html/index.html?pxcstatus.html
Hopefully that makes sense!
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page