From 56ad8dd0964960398eccbeb8dbe1f970d20f3a01 Mon Sep 17 00:00:00 2001 From: Christophe Favergeon Date: Fri, 20 Mar 2020 09:07:26 +0100 Subject: [PATCH] CMSIS-DSP: Correction to spline function to be able to build examples Correction of CMSIS-DSP version number for binary version of the CMSIS-DSP. --- Source/SupportFunctions/arm_spline_interp_init_f32.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Source/SupportFunctions/arm_spline_interp_init_f32.c b/Source/SupportFunctions/arm_spline_interp_init_f32.c index eeb1b9df..492bb20f 100644 --- a/Source/SupportFunctions/arm_spline_interp_init_f32.c +++ b/Source/SupportFunctions/arm_spline_interp_init_f32.c @@ -71,10 +71,6 @@ void arm_spline_init_f32( float32_t * coeffs, float32_t * tempBuffer) { - S->x = x; - S->y = y; - S->n_x = n; - /*** COEFFICIENTS COMPUTATION ***/ /* Type (boundary conditions): - Natural spline ( S1''(x1) = 0 ; Sn''(xn) = 0 ) @@ -95,6 +91,10 @@ void arm_spline_init_f32( int32_t i; /* Loop counter */ + S->x = x; + S->y = y; + S->n_x = n; + /* == Solve LZ=B to obtain z(i) and u(i) == */ /* -- Row 1 -- */