bsptemplate/asspandvariant/template_assp/pa_usbc.cpp
changeset 152 657f875b013e
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
139:95f71bcdcdb7 152:657f875b013e
  1902 	TTemplateAsspUsbcc* const ptr = static_cast<TTemplateAsspUsbcc*>(aPtr);
  1902 	TTemplateAsspUsbcc* const ptr = static_cast<TTemplateAsspUsbcc*>(aPtr);
  1903 	ptr->iCableConnected = ptr->iAssp->UsbClientConnectorInserted();
  1903 	ptr->iCableConnected = ptr->iAssp->UsbClientConnectorInserted();
  1904 #ifdef _DEBUG
  1904 #ifdef _DEBUG
  1905 	_LIT(KIns, "inserted");
  1905 	_LIT(KIns, "inserted");
  1906 	_LIT(KRem, "removed");
  1906 	_LIT(KRem, "removed");
  1907 	__KTRACE_OPT(KUSB, Kern::Printf(" > USB cable now %lS", ptr->iCableConnected ? &KIns : &KRem));
  1907 	__KTRACE_OPT(KUSB, Kern::Printf(" > USB cable now %S", ptr->iCableConnected ? &KIns : &KRem));
  1908 #endif
  1908 #endif
  1909 	if (ptr->iCableConnected)
  1909 	if (ptr->iCableConnected)
  1910 		{
  1910 		{
  1911 		ptr->DeviceEventNotification(EUsbEventCableInserted);
  1911 		ptr->DeviceEventNotification(EUsbEventCableInserted);
  1912 		}
  1912 		}