Skip to content

Commit

Permalink
GPS UART fix until boardd is refactored (#294)
Browse files Browse the repository at this point in the history
* Temporary GPS fix

* spaces
  • Loading branch information
robbederks authored and rbiasini committed Oct 9, 2019
1 parent ffbdb87 commit 0812362
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions board/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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])) {
Expand Down

0 comments on commit 0812362

Please sign in to comment.