Phone: Write err msg if writing to USB PHONE_INT endpoint failed

This commit is contained in:
Christina Quast 2015-04-04 10:15:38 +02:00
parent 35c9e861a9
commit 6355ecedf7
1 changed files with 3 additions and 1 deletions

View File

@ -384,7 +384,9 @@ void Phone_run( void )
// send_ATR(ATR, (sizeof(ATR)/sizeof(ATR[0])));
switch (state) {
case RST_RCVD:
USBD_Write( PHONE_INT, &msg, 1, 0, 0 );
if ((ret = USBD_Write( PHONE_INT, &msg, 1, 0, 0 )) != USBD_STATUS_SUCCESS) {
PR("USB Error: %X", ret);
}
//buf.idx = 0;
//rcvdChar = 0;
// TC0_Counter_Reset();