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:
Guðni Már Gilbert 2023-06-11 16:57:06 +00:00 committed by DRracer
parent 5cfdceb184
commit 6aff3c761b
1 changed files with 1 additions and 1 deletions

View File

@ -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
/// 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){
int32_t length;
int16_t length;
// DBG(_n("x %d -> %d, "), x, _X);
length = x - _X;