fix(ble_log): fix size_info nibble misalignment for last odd-count arg

(cherry picked from commit f5a927e055)

Co-authored-by: luoxu <luoxu@espressif.com>
This commit is contained in:
Luo Xu
2026-05-07 14:16:03 +08:00
committed by luoxu
parent 333f032b44
commit b6bae0c813
@@ -155,7 +155,7 @@ int ble_log_compressed_hex_print_internal(ble_cp_log_buffer_mgmt_t *mgmt, uint32
} else {
arg_type = va_arg(args, size_t);
if (i == args_cnt - 1) {
BLE_CP_TRY_PUSH(ble_log_cp_push_u8(mgmt, arg_type));
BLE_CP_TRY_PUSH(ble_log_cp_push_u8(mgmt, arg_type << 4));
} else {
size_info = arg_type << 4;
}