move out the uart ring process

master
Firmware Batman 2017-07-20 23:54:45 -07:00
parent 2dd6c3f90c
commit 07dac7e75d
2 changed files with 3 additions and 1 deletions

View File

@ -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;
}

View File

@ -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 {