stuff starts to work now
This commit is contained in:
parent
00f11cd9d7
commit
6573bbb6da
|
@ -193,7 +193,7 @@ static int mehfet_getconfigfuses(device_t dev_base)
|
|||
|
||||
const struct device_class device_mehfet = {
|
||||
.name = "mehfet",
|
||||
.help = "MehFET USB device",
|
||||
.help = "MehFET USB JTAG/SBW device",
|
||||
.open = mehfet_open,
|
||||
.destroy = mehfet_destroy,
|
||||
.readmem = mehfet_readmem,
|
||||
|
|
|
@ -155,10 +155,10 @@ static int tr_recv(transport_t tr_base, uint8_t *databuf, int max_len)
|
|||
if (r <= 0) {
|
||||
printc_err("mehfet transport: usb_bulk_read: %s\n",
|
||||
usb_strerror());
|
||||
asm volatile("int3");
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (r > 2) {
|
||||
memcpy(databuf, tmpbuf, r);
|
||||
#ifdef DEBUG_MEHFET_TRANSPORT
|
||||
printc_dbg("mehfet transport: tr_recv: flags = %02x %02x\n",
|
||||
|
@ -167,7 +167,6 @@ static int tr_recv(transport_t tr_base, uint8_t *databuf, int max_len)
|
|||
#endif
|
||||
return r;
|
||||
}
|
||||
}
|
||||
|
||||
printc_err("mehfet transport: timed out while receiving data\n");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue