From dad2fa07adc0e92189238bc13b1aa27dff54c946 Mon Sep 17 00:00:00 2001 From: Arne Date: Sun, 20 Aug 2023 12:37:10 +0200 Subject: [PATCH] Removed useless checks --- src/rdm/responder.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/rdm/responder.c b/src/rdm/responder.c index e852ce35b..3b4d9973e 100644 --- a/src/rdm/responder.c +++ b/src/rdm/responder.c @@ -188,9 +188,6 @@ static int rdm_supported_params_response_cb(dmx_port_t dmx_num, const rdm_pid_description_t *desc, const char *param_str) { - DMX_CHECK(dmx_num < DMX_NUM_MAX, RDM_RESPONSE_TYPE_NONE, "dmx_num error"); - DMX_CHECK(dmx_driver_is_installed(dmx_num), RDM_RESPONSE_TYPE_NONE, "driver is not installed"); - // Return early if the sub-device is out of range if (header->sub_device != RDM_SUB_DEVICE_ROOT) { *pdl_out = rdm_pd_emplace_word(pd, RDM_NR_SUB_DEVICE_OUT_OF_RANGE); @@ -216,8 +213,6 @@ static int rdm_supported_params_response_cb(dmx_port_t dmx_num, } *pdl_out = i * sizeof(uint16_t); - ESP_LOGE(TAG, "NUM OF ADDITIONAL PARAMS: %d\n", i); - return RDM_RESPONSE_TYPE_ACK; }