Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example format failure #4

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Example format failure #4

wants to merge 1 commit into from

Conversation

milesfrain
Copy link
Owner

@milesfrain
Copy link
Owner Author

CI log output:

+ cd /github/workspace
+ ./ci.sh
+ ./format/check.sh
--- common/src/uart_tasks.cpp	(original)
+++ common/src/uart_tasks.cpp	(reformatted)
@@ -25,7 +25,7 @@
 // Constructor
 UartTasks::UartTasks(const char* name, const UartInfo ui, UBaseType_t priority)
   : txTask{ concat(txName, name, "_tx", sizeof(rxName)), txFuncWrapper, this, priority }
-    , rxTask{ concat(rxName, name, "_rx", sizeof(rxName)), rxFuncWrapper, this, priority }
+  , rxTask{ concat(rxName, name, "_rx", sizeof(rxName)), rxFuncWrapper, this, priority }
   , ui{ ui }
 {}
 
@@ -193,13 +193,13 @@
   registerUartCallback(ui.uartNum, uartCallbackWrapper, this);
 
   // point to peripheral address to read from
-  LL_DMA_SetPeriphAddress(ui.dmaRxChReg,ui.dmaRxStream, (uint32_t)&ui.uartReg->DR);
+  LL_DMA_SetPeriphAddress(ui.dmaRxChReg, ui.dmaRxStream, (uint32_t)&ui.uartReg->DR);
 
   // point to memory address to write to
-  LL_DMA_SetMemoryAddress(ui.dmaRxChReg, ui.dmaRxStream, ( uint32_t )rxDmaBuf);
+  LL_DMA_SetMemoryAddress(ui.dmaRxChReg, ui.dmaRxStream, (uint32_t)rxDmaBuf);
 
   // setup size of memory destination
-	LL_DMA_SetDataLength(ui.dmaRxChReg, ui.dmaRxStream, sizeof(rxDmaBuf));
+  LL_DMA_SetDataLength(ui.dmaRxChReg, ui.dmaRxStream, sizeof(rxDmaBuf));
 
   // enable transfer-complete interrupt
   LL_DMA_EnableIT_TC(ui.dmaRxChReg, ui.dmaRxStream);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant