optimisation: reduce code size in M907

Change in memory:
Flash: -4 bytes
SRAM: 0 bytes
This commit is contained in:
Guðni Már Gilbert 2023-07-25 11:08:32 +00:00 committed by Guðni Már Gilbert
parent 53c8bfa928
commit c090868fa2
1 changed files with 1 additions and 1 deletions

View File

@ -8065,7 +8065,7 @@ Sigma_Exit:
SERIAL_ECHOLNPGM(", M907 E ignored");
continue;
}
long cur_mA = code_value_long();
float cur_mA = code_value();
uint8_t val = tmc2130_cur2val(cur_mA);
currents[i].iHold = val;
currents[i].iRun = val;