diff --git a/slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh b/slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh index 3ce858ee8..5fe099a7d 100644 --- a/slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh +++ b/slsDetectorSoftware/generator/autocomplete/bash_autocomplete.sh @@ -2193,20 +2193,6 @@ return 0 } __rx_roi() { FCN_RETURN="" -if [[ ${IS_GET} -eq 0 ]]; then -if [[ "${cword}" == "2" ]]; then -FCN_RETURN="" -fi -if [[ "${cword}" == "3" ]]; then -FCN_RETURN="" -fi -if [[ "${cword}" == "4" ]]; then -FCN_RETURN="" -fi -if [[ "${cword}" == "5" ]]; then -FCN_RETURN="" -fi -fi return 0 } __rx_silent() { diff --git a/slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh b/slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh index c59c1e4a3..64598dd2b 100644 --- a/slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh +++ b/slsDetectorSoftware/generator/autocomplete/zsh_autocomplete.sh @@ -2117,20 +2117,6 @@ return 0 } __rx_roi() { FCN_RETURN="" -if [[ ${IS_GET} -eq 0 ]]; then -if [[ "${cword}" == "2" ]]; then -FCN_RETURN="" -fi -if [[ "${cword}" == "3" ]]; then -FCN_RETURN="" -fi -if [[ "${cword}" == "4" ]]; then -FCN_RETURN="" -fi -if [[ "${cword}" == "5" ]]; then -FCN_RETURN="" -fi -fi return 0 } __rx_silent() { diff --git a/slsDetectorSoftware/generator/extended_commands.yaml b/slsDetectorSoftware/generator/extended_commands.yaml index 6b9f72577..3a698f537 100644 --- a/slsDetectorSoftware/generator/extended_commands.yaml +++ b/slsDetectorSoftware/generator/extended_commands.yaml @@ -8831,25 +8831,8 @@ rx_roi: store_result_in_t: true PUT: args: - - arg_types: - - int - - int - argc: 2 - cast_input: [] - check_det_id: false - convert_det_id: true - function: '' - input: [] - input_types: [] - output: [] - require_det_id: false - store_result_in_t: false - - arg_types: - - int - - int - - int - - int - argc: 4 + - arg_types: [] + argc: -1 cast_input: [] check_det_id: false convert_det_id: true diff --git a/slsDetectorSoftware/src/inferAction.cpp b/slsDetectorSoftware/src/inferAction.cpp index 68c8638f1..7865cd692 100644 --- a/slsDetectorSoftware/src/inferAction.cpp +++ b/slsDetectorSoftware/src/inferAction.cpp @@ -2769,22 +2769,8 @@ int InferAction::rx_realudpsocksize() { int InferAction::rx_roi() { - if (args.size() == 0) { - return slsDetectorDefs::GET_ACTION; - } - - if (args.size() == 2) { - return slsDetectorDefs::PUT_ACTION; - } - - if (args.size() == 4) { - return slsDetectorDefs::PUT_ACTION; - } - - else { - - throw RuntimeError("Could not infer action: Wrong number of arguments"); - } + throw RuntimeError("sls_detector is disabled for command: rx_roi. Use " + "sls_detector_get or sls_detector_put"); } int InferAction::rx_silent() {