logger.c
bool log_process()
{
    char* str;
    uint16_t length;
    bool ret_val = false;

    if(fifoc_get(&q_str, &str) 
    && fifoc_get(&q_length, &length) 
    && callback != NULL)
    {
        callback(str, length);
        ret_val = true;
    }
    return ret_val;
}
// True if a new str has been processed. False if log queue was empty
True if a new str has been processed. False if log queue was empty
True if a new str has been processed . False if log queue was empty
bool log_process()
{
    char* str;
    uint16_t length;
    bool ret_val = false;
    if(fifoc_get(&q_str, &str) 
    && fifoc_get(&q_length, &length) 
    && callback != NULL)
    {
        callback(str, length);
        ret_val = true;
    }
    return ret_val;
}
bool log_process ( ) { char * str ; uint16_t length ; bool ret_val = false ; if ( fifoc_get ( & q_str , & str ) && fifoc_get ( & q_length , & length ) && callback != NULL ) { callback ( str , length ) ; ret_val = true ; } return ret_val ; }
True if a new str has been processed.
True if a new str has been processed .