@@ -159,7 +159,7 @@ static size_t _xfer(tuh_xfer_t *xfer, mp_int_t timeout) {
159
159
_xfer_result = 0xff ;
160
160
xfer -> complete_cb = _transfer_done_cb ;
161
161
if (!tuh_edpt_xfer (xfer )) {
162
- mp_raise_usb_core_USBError (MP_ERROR_TEXT ( "Xfer" ) );
162
+ mp_raise_usb_core_USBError (NULL );
163
163
return 0 ;
164
164
}
165
165
uint32_t start_time = supervisor_ticks_ms32 ();
@@ -177,7 +177,7 @@ static size_t _xfer(tuh_xfer_t *xfer, mp_int_t timeout) {
177
177
xfer_result_t result = _xfer_result ;
178
178
_xfer_result = 0xff ;
179
179
if (result == XFER_RESULT_STALLED ) {
180
- mp_raise_usb_core_USBError (MP_ERROR_TEXT ("Stall " ));
180
+ mp_raise_usb_core_USBError (MP_ERROR_TEXT ("Pipe error " ));
181
181
}
182
182
if (result == 0xff ) {
183
183
tuh_edpt_abort_xfer (xfer -> daddr , xfer -> ep_addr );
@@ -206,7 +206,7 @@ static bool _open_endpoint(usb_core_device_obj_t *self, mp_int_t endpoint) {
206
206
}
207
207
208
208
if (self -> configuration_descriptor == NULL ) {
209
- mp_raise_usb_core_USBError (MP_ERROR_TEXT ("NoCfg " ));
209
+ mp_raise_usb_core_USBError (MP_ERROR_TEXT ("No configuration set " ));
210
210
return false;
211
211
}
212
212
@@ -241,7 +241,7 @@ static bool _open_endpoint(usb_core_device_obj_t *self, mp_int_t endpoint) {
241
241
242
242
mp_int_t common_hal_usb_core_device_write (usb_core_device_obj_t * self , mp_int_t endpoint , const uint8_t * buffer , mp_int_t len , mp_int_t timeout ) {
243
243
if (!_open_endpoint (self , endpoint )) {
244
- mp_raise_usb_core_USBError (MP_ERROR_TEXT ( "Endpt" ) );
244
+ mp_raise_usb_core_USBError (NULL );
245
245
return 0 ;
246
246
}
247
247
tuh_xfer_t xfer ;
@@ -254,7 +254,7 @@ mp_int_t common_hal_usb_core_device_write(usb_core_device_obj_t *self, mp_int_t
254
254
255
255
mp_int_t common_hal_usb_core_device_read (usb_core_device_obj_t * self , mp_int_t endpoint , uint8_t * buffer , mp_int_t len , mp_int_t timeout ) {
256
256
if (!_open_endpoint (self , endpoint )) {
257
- mp_raise_usb_core_USBError (MP_ERROR_TEXT ( "Endpt" ) );
257
+ mp_raise_usb_core_USBError (NULL );
258
258
return 0 ;
259
259
}
260
260
tuh_xfer_t xfer ;
@@ -289,7 +289,7 @@ mp_int_t common_hal_usb_core_device_ctrl_transfer(usb_core_device_obj_t *self,
289
289
_xfer_result = 0xff ;
290
290
291
291
if (!tuh_control_xfer (& xfer )) {
292
- mp_raise_usb_core_USBError (MP_ERROR_TEXT ( "Xfer" ) );
292
+ mp_raise_usb_core_USBError (NULL );
293
293
return 0 ;
294
294
}
295
295
uint32_t start_time = supervisor_ticks_ms32 ();
@@ -307,7 +307,7 @@ mp_int_t common_hal_usb_core_device_ctrl_transfer(usb_core_device_obj_t *self,
307
307
xfer_result_t result = _xfer_result ;
308
308
_xfer_result = 0xff ;
309
309
if (result == XFER_RESULT_STALLED ) {
310
- mp_raise_usb_core_USBError (MP_ERROR_TEXT ("Stall " ));
310
+ mp_raise_usb_core_USBError (MP_ERROR_TEXT ("Pipe error " ));
311
311
}
312
312
if (result == 0xff ) {
313
313
tuh_edpt_abort_xfer (xfer .daddr , xfer .ep_addr );
0 commit comments