mirror of
https://github.com/espressif/esp-idf.git
synced 2026-09-22 13:01:16 +03:00
fix(ble_log): fix size_info nibble misalignment for last odd-count arg
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user