|
@@ -211,7 +211,7 @@
|
211
|
211
|
SERIAL_PRINTLN(data.drv_status, HEX);
|
212
|
212
|
if (data.is_ot) SERIAL_ECHOLNPGM("overtemperature");
|
213
|
213
|
if (data.is_s2g) SERIAL_ECHOLNPGM("coil short circuit");
|
214
|
|
- TERN_(TMC_DEBUG, tmc_report_all(true, true, true, true));
|
|
214
|
+ TERN_(TMC_DEBUG, tmc_report_all());
|
215
|
215
|
kill(PSTR("Driver error"));
|
216
|
216
|
}
|
217
|
217
|
#endif
|
|
@@ -889,7 +889,7 @@
|
889
|
889
|
* M122 report functions
|
890
|
890
|
*/
|
891
|
891
|
|
892
|
|
- void tmc_report_all(bool print_x, const bool print_y, const bool print_z, const bool print_e) {
|
|
892
|
+ void tmc_report_all(const bool print_x/*=true*/, const bool print_y/*=true*/, const bool print_z/*=true*/, const bool print_e/*=true*/) {
|
893
|
893
|
#define TMC_REPORT(LABEL, ITEM) do{ SERIAL_ECHOPGM(LABEL); tmc_debug_loop(ITEM, print_x, print_y, print_z, print_e); }while(0)
|
894
|
894
|
#define DRV_REPORT(LABEL, ITEM) do{ SERIAL_ECHOPGM(LABEL); drv_status_loop(ITEM, print_x, print_y, print_z, print_e); }while(0)
|
895
|
895
|
TMC_REPORT("\t", TMC_CODES);
|
|
@@ -1214,7 +1214,7 @@ static bool test_connection(TMC &st) {
|
1214
|
1214
|
return test_result;
|
1215
|
1215
|
}
|
1216
|
1216
|
|
1217
|
|
-void test_tmc_connection(const bool test_x, const bool test_y, const bool test_z, const bool test_e) {
|
|
1217
|
+void test_tmc_connection(const bool test_x/*=true*/, const bool test_y/*=true*/, const bool test_z/*=true*/, const bool test_e/*=true*/) {
|
1218
|
1218
|
uint8_t axis_connection = 0;
|
1219
|
1219
|
|
1220
|
1220
|
if (test_x) {
|