src/main.c
void show_ir_data(void *data, uint32_t length)
{
    uint8_t *buffer = data;
    uint32_t index = 0;
    log_hal_info("unsigned int receivedIRData[%d] = {",length);
    for (index = 0; index < length; index++) {
        log_hal_info("0x%02x", buffer[index]);
        if (index != length - 1) {
            log_hal_info(",");
        }
        if ((index + 1) % 16 == 0) {
            log_hal_info("\r\n");
            continue;
        }
    }
    if (0 != index && 0 != index % 16) {
        log_hal_info("\r\n");
    }
    log_hal_info("};\r\n");
}
/*Show/Print the irrx received data in an array */
Show/Print the irrx received data in an array
Show / Print the irrx received data in an array
void show_ir_data(void *data, uint32_t length)
{
    uint8_t *buffer = data;
    uint32_t index = 0;
    log_hal_info("unsigned int receivedIRData[%d] = {",length);
    for (index = 0; index < length; index++) {
        log_hal_info("0x%02x", buffer[index]);
        if (index != length - 1) {
            log_hal_info(",");
        }
        if ((index + 1) % 16 == 0) {
            log_hal_info("\r\n");
            continue;
        }
    }
    if (0 != index && 0 != index % 16) {
        log_hal_info("\r\n");
    }
    log_hal_info("};\r\n");
}
void show_ir_data ( void * data , uint32_t length ) { uint8_t * buffer = data ; uint32_t index = 0 ; log_hal_info ( " " , length ) ; for ( index = 0 ; index < length ; index ++ ) { log_hal_info ( " " , buffer [ index ] ) ; if ( index != length - 1 ) { log_hal_info ( " " ) ; } if ( ( index + 1 ) % 16 == 0 ) { log_hal_info ( " \r \n " ) ; continue ; } } if ( 0 != index && 0 != index % 16 ) { log_hal_info ( " \r \n " ) ; } log_hal_info ( " \r \n " ) ; }
Show/Print the irrx received data in an array
Show / Print the irrx received data in an array