Skip to content

Commit

Permalink
Removed useless checks
Browse files Browse the repository at this point in the history
  • Loading branch information
arneboe committed Aug 20, 2023
1 parent 4a73efe commit dad2fa0
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/rdm/responder.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
}

Expand Down

0 comments on commit dad2fa0

Please sign in to comment.