Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: EthernetInterface FiapV2 HTTPClientForSOAP NTPClient TextLCD mbed-rtos mbed spxml
Fork of BlueUSB_f by
Diff: AutoEvents.cpp
- Revision:
- 2:32a2d06f4fe2
- Parent:
- 1:3f2890d103fb
- Child:
- 5:96a70a8cebb9
diff -r 3f2890d103fb -r 32a2d06f4fe2 AutoEvents.cpp
--- a/AutoEvents.cpp Wed Sep 26 06:29:47 2012 +0000
+++ b/AutoEvents.cpp Thu Sep 27 13:04:36 2012 +0000
@@ -141,9 +141,10 @@
void OnLoadDevice(int device, DeviceDescriptor* deviceDesc, InterfaceDescriptor* interfaceDesc)
{
+ int kk=0;
printf("LoadDevice %d %02X:%02X:%02X\n",device,interfaceDesc->bInterfaceClass,interfaceDesc->bInterfaceSubClass,interfaceDesc->bInterfaceProtocol);
char s[128];
- for (int i = 1; i < 3; i++)
+ for (int i = 1; i < 3; i++)
{
if (GetString(device,i,s,sizeof(s)) < 0)
break;
@@ -163,7 +164,8 @@
// Added by Y.Tauchi ------------------------------------
case CLASS_VENDOR_SPECIFIC:
if (interfaceDesc->bInterfaceSubClass == 0x01 && interfaceDesc->bInterfaceProtocol == 0x02)
- OnUspsInsert(device); // it's USPS! (FUJITSU FX-5204PS)
+ kk = OnUspsInsert(device); // it's USPS! (FUJITSU FX-5204PS)
+ if(kk!=0)printf("OnUspsInsert Error %d \n\r",kk);
break;
// ----------------------------------------------------------
default:
