mirror of
https://github.com/espressif/esp-idf.git
synced 2026-10-02 11:10:54 +03:00
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:
@@ -155,7 +155,7 @@ int ble_log_compressed_hex_print_internal(ble_cp_log_buffer_mgmt_t *mgmt, uint32
|
|||||||
} else {
|
} else {
|
||||||
arg_type = va_arg(args, size_t);
|
arg_type = va_arg(args, size_t);
|
||||||
if (i == args_cnt - 1) {
|
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 {
|
} else {
|
||||||
size_info = arg_type << 4;
|
size_info = arg_type << 4;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user