diff --git a/ble/att.c b/ble/att.c index b3e2f2689..cc9463707 100644 --- a/ble/att.c +++ b/ble/att.c @@ -1055,7 +1055,7 @@ uint16_t att_handle_request(att_connection_t * att_connection, case ATT_WRITE_COMMAND: handle_write_command(att_connection, request_buffer, request_len, response_buffer, response_buffer_size); break; - case ATT_SIGNED_WRITE_COMAND: + case ATT_SIGNED_WRITE_COMMAND: printf("handle_signed_write_command preprocessed by att_server.c\n"); break; default: diff --git a/ble/att.h b/ble/att.h index b059f0823..2c69f57a7 100644 --- a/ble/att.h +++ b/ble/att.h @@ -78,8 +78,8 @@ extern "C" { #define ATT_HANDLE_VALUE_CONFIRMATION 0x1e -#define ATT_WRITE_COMMAND 0x52 -#define ATT_SIGNED_WRITE_COMAND 0xD2 +#define ATT_WRITE_COMMAND 0x52 +#define ATT_SIGNED_WRITE_COMMAND 0xD2 // MARK: ATT Error Codes #define ATT_ERROR_INVALID_HANDLE 0x01 diff --git a/ble/att_server.c b/ble/att_server.c index 9cc42af28..265287426 100644 --- a/ble/att_server.c +++ b/ble/att_server.c @@ -213,7 +213,7 @@ static void att_run(void){ case ATT_SERVER_W4_SIGNED_WRITE_VALIDATION: return; case ATT_SERVER_REQUEST_RECEIVED: - if (att_request_buffer[0] == ATT_SIGNED_WRITE_COMAND){ + if (att_request_buffer[0] == ATT_SIGNED_WRITE_COMMAND){ printf("ATT Signed Write!\n"); if (!sm_cmac_ready()) { printf("ATT Signed Write, sm_cmac engine not ready. Abort\n");