CogniBoost/sw/libCogniBoost/cbLibDev.c
static void cbResync(cbHnd_T hnd)
{
  int   nMaxTries = 5;
  int   nTries;

  for(nTries=0; nTries<nMaxTries; ++nTries)
  {
    cbDeviceFlushInput(hnd, CB_PKT_MAX_SIZE);
    // TODO
  }
  CB_LOG_ERROR(hnd, CB_LIB_ECODE_SYNC, "");
}
/*!
 * \brief Resync client with server.
 *
 *  Lost message alignment with the server (if this is possible). Perfomr a
 *  series of flush-request cycles to try to get back in sync.
 *
 * \param hnd       CogniBoost device handle.
 */
\brief Resync client with server.
Lost message alignment with the server (if this is possible). Perfomr a
series of flush-request cycles to try to get back in sync.

\param hnd       CogniBoost device handle.
\ brief Resync client with server . Lost message alignment with the server ( if this is possible ) . Perfomr a series of flush - request cycles to try to get back in sync . \ param hnd CogniBoost device handle .
static void cbResync(cbHnd_T hnd)
{
  int   nMaxTries = 5;
  int   nTries;
  for(nTries=0; nTries<nMaxTries; ++nTries)
  {
    cbDeviceFlushInput(hnd, CB_PKT_MAX_SIZE);
  }
  CB_LOG_ERROR(hnd, CB_LIB_ECODE_SYNC, "");
}
static void cbResync ( cbHnd_T hnd ) { int nMaxTries = 5 ; int nTries ; for ( nTries = 0 ; nTries < nMaxTries ; ++ nTries ) { cbDeviceFlushInput ( hnd , CB_PKT_MAX_SIZE ) ; } CB_LOG_ERROR ( hnd , CB_LIB_ECODE_SYNC , " " ) ; }
\brief Resync client with server.
\ brief Resync client with server .
// TODO