Skip to content

Commit

Permalink
add the comment to clarify broadcast read request restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
alisitsyn committed Apr 29, 2024
1 parent c52d293 commit 1c72b68
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ static esp_err_t mbc_serial_master_set_request(char* name, mb_param_mode_t mode,
// Compare the name of parameter with parameter key from table
int comp_result = memcmp((const void*)name, (const void*)reg_ptr->param_key, (size_t)param_key_len);
if (comp_result == 0) {
// Returns an error in case of broadcast read request
if (!reg_ptr->mb_slave_addr && (mode == MB_PARAM_READ)) {
error = ESP_ERR_INVALID_ARG;
break;
Expand Down

0 comments on commit 1c72b68

Please sign in to comment.