🏗️ Extend AXIS_CHAR to include E
Co-Authored-By: DerAndere <26200979+DerAndere1@users.noreply.github.com>
This commit is contained in:
		
				
					committed by
					
						
						Scott Lahteine
					
				
			
			
				
	
			
			
			
						parent
						
							0041de1a8a
						
					
				
				
					commit
					d56731cd07
				
			@@ -211,7 +211,7 @@ void L64XX_report_current(L64XX &motor, const L64XX_axis_t axis) {
 | 
			
		||||
 *     1 - monitor only X2, Y2, Z2
 | 
			
		||||
 *     2 - monitor only Z3
 | 
			
		||||
 *     3 - monitor only Z4
 | 
			
		||||
 * Xxxx, Yxxx, Zxxx, Exxx - axis to change (optional)
 | 
			
		||||
 * Xxxx, Yxxx, Zxxx, Axxx, Bxxx, Cxxx, Uxxx, Vxxx, Wxxx, Exxx - axis to change (optional)
 | 
			
		||||
 *     L6474 - current in mA (4A max)
 | 
			
		||||
 *     All others - 0-255
 | 
			
		||||
 *
 | 
			
		||||
@@ -236,7 +236,7 @@ void GcodeSuite::M906() {
 | 
			
		||||
    constexpr int8_t index = -1;
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (uint16_t value = parser.intval(axis_codes[i])) {
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (uint16_t value = parser.intval(AXIS_CHAR(i))) {
 | 
			
		||||
 | 
			
		||||
    report_current = false;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -35,7 +35,7 @@ void GcodeSuite::M122() {
 | 
			
		||||
  xyze_bool_t print_axis = ARRAY_N_1(LOGICAL_AXES, false);
 | 
			
		||||
 | 
			
		||||
  bool print_all = true;
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (parser.seen_test(axis_codes[i])) { print_axis[i] = true; print_all = false; }
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (parser.seen_test(AXIS_CHAR(i))) { print_axis[i] = true; print_all = false; }
 | 
			
		||||
 | 
			
		||||
  if (print_all) LOOP_LOGICAL_AXES(i) print_axis[i] = true;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -53,7 +53,7 @@ static void set_stealth_status(const bool enable, const int8_t eindex) {
 | 
			
		||||
    constexpr int8_t index = -1;
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (parser.seen(axis_codes[i])) {
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (parser.seen(AXIS_CHAR(i))) {
 | 
			
		||||
    switch (i) {
 | 
			
		||||
      case X_AXIS:
 | 
			
		||||
        TERN_(X_HAS_STEALTHCHOP,  if (index < 0 || index == 0) TMC_SET_STEALTH(X));
 | 
			
		||||
 
 | 
			
		||||
@@ -66,7 +66,7 @@ void GcodeSuite::M906() {
 | 
			
		||||
    constexpr int8_t index = -1;
 | 
			
		||||
  #endif
 | 
			
		||||
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (uint16_t value = parser.intval(axis_codes[i])) {
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (uint16_t value = parser.intval(AXIS_CHAR(i))) {
 | 
			
		||||
    report = false;
 | 
			
		||||
    switch (i) {
 | 
			
		||||
      #if AXIS_IS_TMC(X) || AXIS_IS_TMC(X2)
 | 
			
		||||
 
 | 
			
		||||
@@ -288,7 +288,7 @@
 | 
			
		||||
    #elif AXIS_IS_TMC(X) || AXIS_IS_TMC(Y) || AXIS_IS_TMC(Z)
 | 
			
		||||
      constexpr uint8_t index = 0;
 | 
			
		||||
    #endif
 | 
			
		||||
    LOOP_LOGICAL_AXES(i) if (int32_t value = parser.longval(axis_codes[i])) {
 | 
			
		||||
    LOOP_LOGICAL_AXES(i) if (int32_t value = parser.longval(AXIS_CHAR(i))) {
 | 
			
		||||
      report = false;
 | 
			
		||||
      switch (i) {
 | 
			
		||||
        #if X_HAS_STEALTHCHOP || X2_HAS_STEALTHCHOP
 | 
			
		||||
 
 | 
			
		||||
@@ -112,13 +112,13 @@ void GcodeSuite::M919() {
 | 
			
		||||
    int8_t eindex = -1;
 | 
			
		||||
  #endif
 | 
			
		||||
  bool report = true;
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (parser.seen_test(axis_codes[i])) {
 | 
			
		||||
  LOOP_LOGICAL_AXES(i) if (parser.seen_test(AXIS_CHAR(i))) {
 | 
			
		||||
    report = false;
 | 
			
		||||
 | 
			
		||||
    // Get the chopper timing for the specified axis and index
 | 
			
		||||
    switch (i) {
 | 
			
		||||
      default: // A specified axis isn't Trinamic
 | 
			
		||||
        SERIAL_ECHOLNPGM("?Axis ", AS_CHAR(axis_codes[i]), " has no TMC drivers.");
 | 
			
		||||
        SERIAL_ECHOLNPGM("?Axis ", AS_CHAR(AXIS_CHAR(i)), " has no TMC drivers.");
 | 
			
		||||
        break;
 | 
			
		||||
 | 
			
		||||
      #if AXIS_IS_TMC(X) || AXIS_IS_TMC(X2)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user