/* Checks if a bus off or bus heavy situation occurred.  */
static bool SocketCanIsBusError(void)
/* Checks if a bus off or bus heavy situation occurred.  */
static bool SocketCanIsBusError(void)
{
  bool result= false;
  UtilCriticalSectionEnter();
  if (socketCanErrorDetected)
  {
    result = true;
    socketCanErrorDetected = false;
  }
  UtilCriticalSectionExit();
  return result;
}