We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3cfbcf commit bdb9195Copy full SHA for bdb9195
ur_controllers/src/gpio_controller.cpp
@@ -407,7 +407,7 @@ bool GPIOController::setAnalogOutput(ur_msgs::srv::SetAnalogOutput::Request::Sha
407
return false;
408
}
409
410
- if (req->data.pin < 0 || req->data.pin > 1) {
+ if (!(req->data.pin == 0 || req->data.pin == 1)) {
411
RCLCPP_ERROR(get_node()->get_logger(), "Invalid pin selected. Only pins 0 and 1 are allowed.");
412
resp->success = false;
413
0 commit comments