Comment/cleanup of motion code

This commit is contained in:
Scott Lahteine committed 2017-12-02 01:09:55 -06:00
1 parent 046a1ad331
commit 000b3b3117
6 files changed
+78 -105

No files matched your search

+2 -2
View File
@@ -505,8 +505,8 @@ class Planner {
/**
* Get the index of the next / previous block in the ring buffer
*/
static int8_t next_block_index(int8_t block_index) { return BLOCK_MOD(block_index + 1); }
static int8_t prev_block_index(int8_t block_index) { return BLOCK_MOD(block_index - 1); }
static int8_t next_block_index(const int8_t block_index) { return BLOCK_MOD(block_index + 1); }
static int8_t prev_block_index(const int8_t block_index) { return BLOCK_MOD(block_index - 1); }
/**
* Calculate the distance (not time) it takes to accelerate