From 35641e6028985769f1f37858b984f80b117e17c5 Mon Sep 17 00:00:00 2001 From: Piotr Wasilewski Date: Thu, 14 Sep 2023 16:20:47 +0200 Subject: [PATCH] fix: deleted dead code in Cube example --- test/STMViewer_test/Core/Src/stm32g4xx_it.c | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/test/STMViewer_test/Core/Src/stm32g4xx_it.c b/test/STMViewer_test/Core/Src/stm32g4xx_it.c index 8e7ac2d1..58b777af 100644 --- a/test/STMViewer_test/Core/Src/stm32g4xx_it.c +++ b/test/STMViewer_test/Core/Src/stm32g4xx_it.c @@ -47,24 +47,7 @@ /* Private function prototypes -----------------------------------------------*/ /* USER CODE BEGIN PFP */ -float factorial(int n) { - float fact = 1.0; - for (int i = 2; i <= n; ++i) - { - fact *= i; - } - return fact; -} -float approximateSin(float x, int terms) -{ - float result = 0.0; - for (int n = 0; n < terms; ++n) { - float term = (powf(-1, n) * powf(x, 2 * n + 1)) / factorial(2 * n + 1); - result += term; - } - return result; -} /* USER CODE END PFP */ /* Private user code ---------------------------------------------------------*/