src/lq-diagnostics.c
/**
 *  \brief Function to service an application failed ASSERT_W().
 * 
 *  Assert warnings are intended to be used during active development to signal back non-optimal
 *  code patterns.
 * 
 *  \param fileIn [in] The numeric ID of the file containing the triggered ASSERT_W()
 *  \param line [in] The line number of the ASSERT_W() triggering the invoke.
 *  \param faultTxt [in] Error message
 */
\brief Function to service an application failed ASSERT_W().

Assert warnings are intended to be used during active development to signal back non-optimal
code patterns.

\param fileIn [in] The numeric ID of the file containing the triggered ASSERT_W()
\param line [in] The line number of the ASSERT_W() triggering the invoke.
\param faultTxt [in] Error message
\ brief Function to service an application failed ASSERT_W () . Assert warnings are intended to be used during active development to signal back non - optimal code patterns . \ param fileIn [ in ] The numeric ID of the file containing the triggered ASSERT_W () \ param line [ in ] The line number of the ASSERT_W () triggering the invoke . \ param faultTxt [ in ] Error message
void assert_warning(uint16_t fileId, uint16_t line, const char *faultTxt)
{
    if (g_diagControl.notifCB != NULL && g_diagControl.notifCBChk == S_calcNotifyCbChk(g_diagControl.notifCB))
    {
        char notifyMsg[80];
        snprintf(notifyMsg, sizeof(notifyMsg), "WARN f:%X,l:%d-%s\r", fileId, line, faultTxt);
        uint8_t assm = (uint8_t)(fileId & 0xFF00) >> 8;
        g_diagControl.notifCB(lqNotifType_assertWarning, assm, 0, notifyMsg);
    }
}
void assert_warning ( uint16_t fileId , uint16_t line , const char * faultTxt ) { if ( g_diagControl . notifCB != NULL && g_diagControl . notifCBChk == S_calcNotifyCbChk ( g_diagControl . notifCB ) ) { char notifyMsg [ 80 ] ; snprintf ( notifyMsg , sizeof ( notifyMsg ) , " \r " , fileId , line , faultTxt ) ; uint8_t assm = ( uint8_t ) ( fileId & 0xFF00 ) >> 8 ; g_diagControl . notifCB ( lqNotifType_assertWarning , assm , 0 , notifyMsg ) ; } }
\brief Function to service an application failed ASSERT_W().
\ brief Function to service an application failed ASSERT_W () .