Selaa lähdekoodia

Add enough precision so planner.xy_skew_factor doesn't print as 0.00

Roxy-3D 6 vuotta sitten
vanhempi
commit
19e75ccf86
No account linked to committer's email address
1 muutettua tiedostoa jossa 5 lisäystä ja 2 poistoa
  1. 5
    2
      Marlin/src/module/configuration_store.cpp

+ 5
- 2
Marlin/src/module/configuration_store.cpp Näytä tiedosto

@@ -2031,11 +2031,14 @@ void MarlinSettings::reset() {
2031 2031
       }
2032 2032
       CONFIG_ECHO_START;
2033 2033
       #if ENABLED(SKEW_CORRECTION_FOR_Z)
2034
-        SERIAL_ECHOPAIR("  M852 I", LINEAR_UNIT(planner.xy_skew_factor));
2034
+        SERIAL_ECHO("  M852 I");
2035
+        SERIAL_ECHO_F(LINEAR_UNIT(planner.xy_skew_factor),6);
2035 2036
         SERIAL_ECHOPAIR(" J", LINEAR_UNIT(planner.xz_skew_factor));
2036 2037
         SERIAL_ECHOLNPAIR(" K", LINEAR_UNIT(planner.yz_skew_factor));
2037 2038
       #else
2038
-        SERIAL_ECHOLNPAIR("  M852 S", LINEAR_UNIT(planner.xy_skew_factor));
2039
+        SERIAL_ECHO("  M852 S");
2040
+        SERIAL_ECHO_F(planner.xy_skew_factor, 6);
2041
+        SERIAL_ECHO("\n");
2039 2042
       #endif
2040 2043
     #endif
2041 2044
 

Loading…
Peruuta
Tallenna