From 0812362b52b6df531c74e1dc6cf02b3d31d0a596 Mon Sep 17 00:00:00 2001 From: robbederks Date: Tue, 8 Oct 2019 19:41:10 -0700 Subject: [PATCH] GPS UART fix until boardd is refactored (#294) * Temporary GPS fix * spaces --- board/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/board/main.c b/board/main.c index c5324d873e2718..df134e046baaad 100644 --- a/board/main.c +++ b/board/main.c @@ -399,6 +399,12 @@ int usb_cb_control_msg(USB_Setup_TypeDef *setup, uint8_t *resp, bool hardwired) if (!ur) { break; } + + // TODO: Remove this again and fix boardd code to hande the message bursts instead of single chars + if (ur == &uart_ring_esp_gps) { + dma_pointer_handler(ur, DMA2_Stream5->NDTR); + } + // read while ((resp_len < MIN(setup->b.wLength.w, MAX_RESP_LEN)) && getc(ur, (char*)&resp[resp_len])) {