corrected cmd att opcode name

This commit is contained in:
mila@ringwald.ch 2014-06-19 22:19:26 +00:00
parent b1d3214076
commit 22332a8a16
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -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

View File

@ -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");