Skip to content

Commit 65bc8f0

Browse files
committed
avoid #include of Log2Representation.h in FastAccelStepper.h
1 parent 816f3e1 commit 65bc8f0

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/FastAccelStepper.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#ifndef FASTACCELSTEPPER_H
22
#define FASTACCELSTEPPER_H
33
#include <stdint.h>
4-
#include "Log2Representation.h"
54
#include "fas_arch/common.h"
65

76
// # FastAccelStepper

src/Log2Representation.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ uint32_t log2_to_u32(pmf_logarithmic x);
2727
#define log2_rsqrt(x) (-(x) / 2)
2828
#define log2_rsquare(x) log2_reciprocal(log2_square(x))
2929

30-
inline pmf_logarithmic log2_pow_div_3(pmf_logarithmic x) {
30+
static inline pmf_logarithmic log2_pow_div_3(pmf_logarithmic x) {
3131
// 1/3 ~ (1/4+1/16+1/64+1/256+1/1024+1/4096+1/16384)
3232
x /= 2; // x/2
3333
x += x / 4; // x/2 + x/8

0 commit comments

Comments
 (0)