1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/**
 *******************************************************************************
 * @file     app_log.c
 * @create   2024-11-01    
 * @author   Panchip BLE GROUP
 * @note
 * Copyright (c) 2022 Shanghai Panchip Microelectronics Co.,Ltd.
 *
 *******************************************************************************
 */
#include "app_log.h"
 
#if APP_LOG_EN
void app_log_print_data(uint8_t *pdata, uint32_t len)
{
    for(uint32_t i=0; i<len; i++){
        if( i != 0 && (i%16) == 0){
            APP_LOG_PRINT("\r\n");
        }
        APP_LOG_PRINT("%02X ", pdata[i]);
    }
    APP_LOG_PRINT("\r\n");
}
#endif