Phone: Write err msg if writing to USB PHONE_INT endpoint failed
diff --git a/sam3s_example/simtrace/phone.c b/sam3s_example/simtrace/phone.c
index dda1636..bb50610 100644
--- a/sam3s_example/simtrace/phone.c
+++ b/sam3s_example/simtrace/phone.c
@@ -384,7 +384,9 @@
// 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();