mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-05 21:59:45 +00:00
att_db: report write not permitted if no att write callback set
This commit is contained in:
parent
18a238c083
commit
42dfcaca3c
@ -1104,6 +1104,10 @@ static uint16_t handle_execute_write_request(att_connection_t * att_connection,
|
||||
|
||||
if (request_len < 2) return setup_error_invalid_pdu(response_buffer, request_type);
|
||||
|
||||
if (att_write_callback == NULL) {
|
||||
return setup_error_write_not_permitted(response_buffer, request_type, 0);
|
||||
}
|
||||
|
||||
if (request_buffer[1]) {
|
||||
// validate queued write
|
||||
if (att_prepare_write_error_code == 0){
|
||||
|
Loading…
Reference in New Issue
Block a user