XYZCal: reduce code size in go_manhattan
The variable always takes a value of subtraction between two int16_t values. It will also fit into int16_t Change in memory: Flash: -50 bytes: SRAM: 0 bytes
This commit is contained in:
parent
5cfdceb184
commit
6aff3c761b
|
|
@ -535,7 +535,7 @@ void go_start_stop(uint8_t axes, uint8_t dir, int16_t acc, uint16_t min_delay_us
|
||||||
/// moves X, Y, Z one after each other
|
/// moves X, Y, Z one after each other
|
||||||
/// starts and ends at 0 speed
|
/// starts and ends at 0 speed
|
||||||
void go_manhattan(int16_t x, int16_t y, int16_t z, int16_t acc, uint16_t min_delay_us){
|
void go_manhattan(int16_t x, int16_t y, int16_t z, int16_t acc, uint16_t min_delay_us){
|
||||||
int32_t length;
|
int16_t length;
|
||||||
|
|
||||||
// DBG(_n("x %d -> %d, "), x, _X);
|
// DBG(_n("x %d -> %d, "), x, _X);
|
||||||
length = x - _X;
|
length = x - _X;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue