mirror of https://github.com/Desuuuu/klipper.git
input_shaper: Fixed C module compilation on older gnu90 compilers
For example, Raspbian GNU/Linux 8 (jessie) uses an old GCC version 4.9.2 which uses -std=gnu90 by default. Signed-off-by: Dmitry Butyugin <dmbutyugin@google.com>
This commit is contained in:
parent
cd8f250e84
commit
5dc0c8aac0
|
@ -50,7 +50,8 @@ calc_position(struct move *m, int axis, double move_time
|
|||
, struct shaper_pulse *pulses, int n)
|
||||
{
|
||||
double res = 0.;
|
||||
for (int i = 0; i < n; ++i)
|
||||
int i;
|
||||
for (i = 0; i < n; ++i)
|
||||
res += pulses[i].a * get_axis_position_across_moves(
|
||||
m, axis, move_time + pulses[i].t);
|
||||
return res;
|
||||
|
|
Loading…
Reference in New Issue