HAS_TRINAMIC => HAS_TRINAMIC_CONFIG
This commit is contained in:
@ -44,7 +44,7 @@
|
||||
// Could be moved to a feature, but this is all the data
|
||||
bool powersupply_on;
|
||||
|
||||
#if HAS_TRINAMIC
|
||||
#if HAS_TRINAMIC_CONFIG
|
||||
#include "../../feature/tmc_util.h"
|
||||
#endif
|
||||
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "../../../inc/MarlinConfig.h"
|
||||
|
||||
#if HAS_TRINAMIC
|
||||
#if HAS_TRINAMIC_CONFIG
|
||||
|
||||
#include "../../gcode.h"
|
||||
#include "../../../feature/tmc_util.h"
|
||||
@ -53,4 +53,4 @@ void GcodeSuite::M122() {
|
||||
test_tmc_connection(print_axis.x, print_axis.y, print_axis.z, print_axis.e);
|
||||
}
|
||||
|
||||
#endif // HAS_TRINAMIC
|
||||
#endif // HAS_TRINAMIC_CONFIG
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "../../../inc/MarlinConfig.h"
|
||||
|
||||
#if HAS_TRINAMIC
|
||||
#if HAS_TRINAMIC_CONFIG
|
||||
|
||||
#include "../../gcode.h"
|
||||
#include "../../../feature/tmc_util.h"
|
||||
@ -170,4 +170,4 @@ void GcodeSuite::M906() {
|
||||
}
|
||||
}
|
||||
|
||||
#endif // HAS_TRINAMIC
|
||||
#endif // HAS_TRINAMIC_CONFIG
|
||||
|
@ -22,7 +22,7 @@
|
||||
|
||||
#include "../../../inc/MarlinConfig.h"
|
||||
|
||||
#if HAS_TRINAMIC
|
||||
#if HAS_TRINAMIC_CONFIG
|
||||
|
||||
#include "../../gcode.h"
|
||||
#include "../../../feature/tmc_util.h"
|
||||
@ -426,4 +426,4 @@
|
||||
}
|
||||
#endif // USE_SENSORLESS
|
||||
|
||||
#endif // HAS_TRINAMIC
|
||||
#endif // HAS_TRINAMIC_CONFIG
|
||||
|
@ -785,7 +785,7 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if HAS_TRINAMIC
|
||||
#if HAS_TRINAMIC_CONFIG
|
||||
case 122: M122(); break; // M122: Report driver configuration and status
|
||||
case 906: M906(); break; // M906: Set motor current in milliamps using axis codes X, Y, Z, E
|
||||
#if HAS_STEALTHCHOP
|
||||
|
@ -912,7 +912,7 @@ private:
|
||||
static void M900();
|
||||
#endif
|
||||
|
||||
#if HAS_TRINAMIC
|
||||
#if HAS_TRINAMIC_CONFIG
|
||||
static void M122();
|
||||
static void M906();
|
||||
#if HAS_STEALTHCHOP
|
||||
|
Reference in New Issue
Block a user