Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
digant73 committed Apr 24, 2022
1 parent 9d02770 commit 730b200
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TFT/src/User/API/MachineParameters.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,9 @@ const char * const parameterCmd[PARAMETERS_COUNT][MAX_ELEMENT_COUNT] = {
{"X%.2f\n", "Y%.2f\n", "Z%.2f\n", NULL, NULL, NULL, NULL, NULL, NULL, NULL}, // Delta Endstop Adjustments (Ex, Ey, Ez)
{"X%.2f\n", "Y%.2f\n", "Z%.2f\n", NULL, NULL, NULL, NULL, NULL, NULL, NULL}, // Probe offset (X, Y, Z)
{"T0 K%.2f\n", "T1 K%.2f\n", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}, // Linear Advance (E0, E1)
{"I0 X%.0f\n", "I1 X%.0f\n", "I0 Y%.0f\n", "I1 Y%.0f\n", "I0 Z%.0f\n", "I1 Z%.0f\n", "I2 Z%.0f\n", "I3 Z%.0f\n" "T0 E%.0f\n", "T1 E%.0f\n"}, // Current (X, X2, Y, Y2, Z, Z2, Z3, Z4, E0, E1)
{"I0 X%.0f\n", "I1 X%.0f\n", "I0 Y%.0f\n", "I1 Y%.0f\n", "I0 Z%.0f\n", "I1 Z%.0f\n", "I2 Z%.0f\n", "I3 Z%.0f\n" "T0 E%.0f\n", "T1 E%.0f\n"}, // TMC Hybrid Threshold Speed (X, X2, Y, Y2, Z, Z2, Z3, Z4, E0, E1)
{"I0 X%.0f\n", "I1 X%.0f\n", "I0 Y%.0f\n", "I1 Y%.0f\n", "I0 Z%.0f\n", "I1 Z%.0f\n", "I2 Z%.0f\n", "I3 Z%.0f\n", NULL, NULL}, // bump Sensitivity (X, X2, Y, Y2, Z, Z2, Z3, Z4)
{"I1 X%.0f\n", "I2 X%.0f\n", "I1 Y%.0f\n", "I2 Y%.0f\n", "I1 Z%.0f\n", "I2 Z%.0f\n", "I3 Z%.0f\n", "I4 Z%.0f\n" "T0 E%.0f\n", "T1 E%.0f\n"}, // Current (X, X2, Y, Y2, Z, Z2, Z3, Z4, E0, E1)
{"I1 X%.0f\n", "I2 X%.0f\n", "I1 Y%.0f\n", "I2 Y%.0f\n", "I1 Z%.0f\n", "I2 Z%.0f\n", "I3 Z%.0f\n", "I4 Z%.0f\n" "T0 E%.0f\n", "T1 E%.0f\n"}, // TMC Hybrid Threshold Speed (X, X2, Y, Y2, Z, Z2, Z3, Z4, E0, E1)
{"I1 X%.0f\n", "I2 X%.0f\n", "I1 Y%.0f\n", "I2 Y%.0f\n", "I1 Z%.0f\n", "I2 Z%.0f\n", "I3 Z%.0f\n", "I4 Z%.0f\n", NULL, NULL}, // bump Sensitivity (X, X2, Y, Y2, Z, Z2, Z3, Z4)
{"S4 Z%.2f\nG29 S0\n", NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL}, // MBL offset
};

Expand Down
3 changes: 3 additions & 0 deletions TFT/src/User/API/interfaceCmd.c
Original file line number Diff line number Diff line change
Expand Up @@ -1205,6 +1205,9 @@ void sendQueueCmd(void)

uint8_t i = (cmd_seen('I')) ? cmd_value() : 0;

if (i > 0) // "X1"->0, "X2"->1, "Y1"->0, "Y2"->1, "Z1"->0, "Z2"->1, "Z3"->2, "Z4"->3
i--;

if (cmd_seen('X')) setParameter(param, STEPPER_INDEX_X + i, cmd_value());
if (cmd_seen('Y')) setParameter(param, STEPPER_INDEX_Y + i, cmd_value());
if (cmd_seen('Z')) setParameter(param, STEPPER_INDEX_Z + i, cmd_value());
Expand Down
3 changes: 3 additions & 0 deletions TFT/src/User/API/parseACK.c
Original file line number Diff line number Diff line change
Expand Up @@ -1031,6 +1031,9 @@ void parseACK(void)

uint8_t i = (ack_seen("I")) ? ack_value() : 0;

if (i > 0) // "X1"->0, "X2"->1, "Y1"->0, "Y2"->1, "Z1"->0, "Z2"->1, "Z3"->2, "Z4"->3
i--;

if (ack_seen("X")) setParameter(param, STEPPER_INDEX_X + i, ack_value());
if (ack_seen("Y")) setParameter(param, STEPPER_INDEX_Y + i, ack_value());
if (ack_seen("Z")) setParameter(param, STEPPER_INDEX_Z + i, ack_value());
Expand Down

0 comments on commit 730b200

Please sign in to comment.