mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 14:58:35 +03:00
Phone: Write err msg if writing to USB PHONE_INT endpoint failed
This commit is contained in:
@@ -384,7 +384,9 @@ void Phone_run( void )
|
|||||||
// send_ATR(ATR, (sizeof(ATR)/sizeof(ATR[0])));
|
// send_ATR(ATR, (sizeof(ATR)/sizeof(ATR[0])));
|
||||||
switch (state) {
|
switch (state) {
|
||||||
case RST_RCVD:
|
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;
|
//buf.idx = 0;
|
||||||
//rcvdChar = 0;
|
//rcvdChar = 0;
|
||||||
// TC0_Counter_Reset();
|
// TC0_Counter_Reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user