Revision 7e57f049 hw/usb-serial.c
b/hw/usb-serial.c | ||
---|---|---|
445 | 445 |
} |
446 | 446 |
*data++ = usb_get_modem_lines(s) | 1; |
447 | 447 |
/* We do not have the uart details */ |
448 |
*data++ = 0; |
|
448 |
/* handle serial break */ |
|
449 |
if (s->event_trigger && s->event_trigger & FTDI_BI) { |
|
450 |
s->event_trigger &= ~FTDI_BI; |
|
451 |
*data++ = FTDI_BI; |
|
452 |
ret = 2; |
|
453 |
break; |
|
454 |
} else { |
|
455 |
*data++ = 0; |
|
456 |
} |
|
449 | 457 |
len -= 2; |
450 | 458 |
if (len > s->recv_used) |
451 | 459 |
len = s->recv_used; |
... | ... | |
505 | 513 |
|
506 | 514 |
switch (event) { |
507 | 515 |
case CHR_EVENT_BREAK: |
508 |
/* TODO: Send Break to USB */
|
|
516 |
s->event_trigger |= FTDI_BI;
|
|
509 | 517 |
break; |
510 | 518 |
case CHR_EVENT_FOCUS: |
511 | 519 |
break; |
Also available in: Unified diff