STM32CubeIDE while(1) bug? Linux versions
Hello,
I see in code generated by all Linux versions of CubeIDE that USER CODE BEGIN and USER CODE END tags in infinite loop, are not in the better place.
Code generated by Cude IDE:
/* Infinite loop */
/* USER CODE BEGIN WHILE */
while (1)
{
/* USER CODE END WHILE */
/* USER CODE BEGIN 3 */
}
/* USER CODE END 3 */
}
The USER CODE BEGIN WHILE is outside the loop, and the USER CODE BEGIN 3 is into the loop.
I think it would be better, especially for beginner programmers, something like this:
/* Infinite loop */
while (1)
{
/* USER CODE BEGIN WHILE */
/* USER CODE END WHILE */
}
/* USER CODE BEGIN 3 */
/* USER CODE END 3 */Or is there some reason to generate the code like the above?
Greetings
