Skip to content

Commit 5dc273b

Browse files
committed
fix bad rebase changes
1 parent f73f3fb commit 5dc273b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

ECU/Core/Src/main.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,20 +115,22 @@ int main(void)
115115

116116
/* USER CODE END 2 */
117117

118-
// Demo USART loopback
118+
/* Infinite loop */
119+
/* USER CODE BEGIN WHILE */
119120
uint8_t buffer[128];
120121
USARTConfig config;
121122
USARTHandle handle = usart_init_peripheral(&config);
122123
while (1) {
123124
/* USER CODE END WHILE */
124-
handle.send(&handle, (uint8_t *)"Hello, USART!\n", 0);
125+
125126
/* USER CODE BEGIN 3 */
126127
ECU_State_Tick();
127128
LOGOMATIC("Main Loop Tick Complete. I like Pi %f\n",
128129
3.14159265);
129130
LL_mDelay(250); // FIXME Reduce or remove delay
131+
usart_send(&handle, (uint8_t *)"Hello, USART!\n", 0);
130132
}
131-
usart_release(&handle); // not reachable but you get the idea
133+
/* USER CODE END 3 */
132134
}
133135

134136
/**

0 commit comments

Comments
 (0)