btstack_ltv_builder: set len for empty tag to 1

This commit is contained in:
Matthias Ringwald 2025-01-31 16:12:33 +01:00
parent 14a4e73a0c
commit f3a6ba06ac

View File

@ -73,7 +73,7 @@ void btstack_ltv_builder_add_tag(btstack_ltv_builder_context_t * context, uint8_
// track len field position
context->len_pos = context->write_pos;
// add empty tag
context->buffer[context->write_pos++] = 0;
context->buffer[context->write_pos++] = 1;
context->buffer[context->write_pos++] = tag;
}