mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-18 10:22:54 +00:00
auto-pts: add log message length field
This commit is contained in:
parent
d91d7ea51f
commit
8ebd173655
@ -475,8 +475,8 @@ static void btp_core_handler(uint8_t opcode, uint8_t controller_index, uint16_t
|
||||
break;
|
||||
case BTP_CORE_OP_LOG_MESSAGE:
|
||||
if (controller_index == BTP_INDEX_NON_CONTROLLER){
|
||||
uint16_t len = btstack_min(sizeof(message_buffer)-1,length);
|
||||
memcpy(message_buffer, data, len);
|
||||
uint16_t len = btstack_min(sizeof(message_buffer)-1,length-2);
|
||||
memcpy(message_buffer, &data[2], len);
|
||||
message_buffer[len] = 0;
|
||||
MESSAGE("BTP_CORE_LOG_MESSAGE %s", message_buffer);
|
||||
btp_send(BTP_SERVICE_ID_CORE, opcode, controller_index, 0, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user