mirror of
https://github.com/orbbec/OrbbecSDK_ROS2.git
synced 2026-10-11 15:09:48 +08:00
fix: improve error message for out-of-range color MJPEG quality value
This commit is contained in:
@@ -1493,8 +1493,8 @@ void OBCameraNode::setupDevices() {
|
|||||||
auto range = device_->getIntPropertyRange(OB_PROP_MJPEG_QUALITY_INT);
|
auto range = device_->getIntPropertyRange(OB_PROP_MJPEG_QUALITY_INT);
|
||||||
if (color_mjpeg_quality_ < range.min || color_mjpeg_quality_ > range.max) {
|
if (color_mjpeg_quality_ < range.min || color_mjpeg_quality_ > range.max) {
|
||||||
RCLCPP_ERROR(logger_,
|
RCLCPP_ERROR(logger_,
|
||||||
"color MJPEG quality value is out of range[%d,%d], please check the value",
|
"color MJPEG quality value %d is out of range[%d,%d], please check the value",
|
||||||
range.min, range.max);
|
color_mjpeg_quality_, range.min, range.max);
|
||||||
} else {
|
} else {
|
||||||
TRY_TO_SET_PROPERTY(setIntProperty, OB_PROP_MJPEG_QUALITY_INT, color_mjpeg_quality_);
|
TRY_TO_SET_PROPERTY(setIntProperty, OB_PROP_MJPEG_QUALITY_INT, color_mjpeg_quality_);
|
||||||
TRY_EXECUTE_BLOCK(RCLCPP_INFO_STREAM(
|
TRY_EXECUTE_BLOCK(RCLCPP_INFO_STREAM(
|
||||||
|
|||||||
Reference in New Issue
Block a user