move out the uart ring process
parent
2dd6c3f90c
commit
07dac7e75d
|
@ -133,9 +133,10 @@ int putc(uart_ring *q, char elem) {
|
|||
q->w_ptr_tx = next_w_ptr;
|
||||
ret = 1;
|
||||
}
|
||||
uart_ring_process(q);
|
||||
exit_critical_section();
|
||||
|
||||
uart_ring_process(q);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
|
|
@ -227,6 +227,7 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, int hardwired) {
|
|||
if (setup->b.wIndex.w == 1) {
|
||||
can_set_gmlan(1);
|
||||
} else if (setup->b.wIndex.w == 2) {
|
||||
// might be ignored on rev b panda
|
||||
can_set_gmlan(2);
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue