Przeglądaj źródła

Fix stepper DAC compile

Fixes #17438
Scott Lahteine 5 lat temu
rodzic
commit
3ea23712eb
1 zmienionych plików z 5 dodań i 7 usunięć
  1. 5
    7
      Marlin/src/feature/dac/stepper_dac.cpp

+ 5
- 7
Marlin/src/feature/dac/stepper_dac.cpp Wyświetl plik

@@ -29,6 +29,7 @@
29 29
 #if ENABLED(DAC_STEPPER_CURRENT)
30 30
 
31 31
 #include "stepper_dac.h"
32
+#include "../../MarlinCore.h" // for SP_X_LBL...
32 33
 
33 34
 bool dac_present = false;
34 35
 constexpr xyze_uint8_t dac_order = DAC_STEPPER_ORDER;
@@ -85,15 +86,12 @@ void dac_current_set_percents(xyze_uint8_t &pct) {
85 86
 
86 87
 void dac_print_values() {
87 88
   if (!dac_present) return;
88
-
89 89
   SERIAL_ECHO_MSG("Stepper current values in % (Amps):");
90 90
   SERIAL_ECHO_START();
91
-  SERIAL_ECHOLNPAIR_P(
92
-    SP_X_LBL, dac_perc(X_AXIS), PSTR(" ("), dac_amps(X_AXIS), PSTR(")")
93
-    SP_Y_LBL, dac_perc(Y_AXIS), PSTR(" ("), dac_amps(Y_AXIS), PSTR(")")
94
-    SP_Z_LBL, dac_perc(Z_AXIS), PSTR(" ("), dac_amps(Z_AXIS), PSTR(")")
95
-    SP_E_LBL, dac_perc(E_AXIS), PSTR(" ("), dac_amps(E_AXIS), PSTR(")")
96
-  );
91
+  SERIAL_ECHOPAIR_P(  SP_X_LBL, dac_perc(X_AXIS), PSTR(" ("), dac_amps(X_AXIS), PSTR(")"));
92
+  SERIAL_ECHOPAIR_P(  SP_Y_LBL, dac_perc(Y_AXIS), PSTR(" ("), dac_amps(Y_AXIS), PSTR(")"));
93
+  SERIAL_ECHOPAIR_P(  SP_Z_LBL, dac_perc(Z_AXIS), PSTR(" ("), dac_amps(Z_AXIS), PSTR(")"));
94
+  SERIAL_ECHOLNPAIR_P(SP_E_LBL, dac_perc(E_AXIS), PSTR(" ("), dac_amps(E_AXIS), PSTR(")"));
97 95
 }
98 96
 
99 97
 void dac_commit_eeprom() {

Ładowanie…
Anuluj
Zapisz