mirror of
https://github.com/MarlinFirmware/Marlin.git
synced 2024-11-29 23:07:42 +00:00
🩹 Fix ESP32 compile error (#25873)
This commit is contained in:
parent
317450af32
commit
eb439b93a5
@ -28,8 +28,8 @@
|
|||||||
|
|
||||||
constexpr int8_t to_fix(int8_t v) { return v * 2; }
|
constexpr int8_t to_fix(int8_t v) { return v * 2; }
|
||||||
constexpr int8_t to_int(int8_t v) { return v / 2; }
|
constexpr int8_t to_int(int8_t v) { return v / 2; }
|
||||||
constexpr uint8_t log2(uint8_t n) { return (n > 1) ? 1 + log2(n >> 1) : 0; }
|
constexpr uint8_t log2(uint8_t n) { return (n > 1) ? 1 + log2(uint8_t(n >> 1)) : 0; }
|
||||||
constexpr uint8_t order(uint8_t n) { return uint8_t(log2(n - 1)) + 1; }
|
constexpr uint8_t order(uint8_t n) { return uint8_t(log2(uint8_t(n - 1))) + 1; }
|
||||||
constexpr uint8_t ord = order(_MAX(GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y));
|
constexpr uint8_t ord = order(_MAX(GRID_MAX_POINTS_X, GRID_MAX_POINTS_Y));
|
||||||
constexpr uint8_t dim = _BV(ord);
|
constexpr uint8_t dim = _BV(ord);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user