Browse Source

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

Roxy-3D 6 years ago
parent
commit
19e75ccf86
No account linked to committer's email address
1 changed files with 5 additions and 2 deletions
  1. 5
    2
      Marlin/src/module/configuration_store.cpp

+ 5
- 2
Marlin/src/module/configuration_store.cpp View File

2031
       }
2031
       }
2032
       CONFIG_ECHO_START;
2032
       CONFIG_ECHO_START;
2033
       #if ENABLED(SKEW_CORRECTION_FOR_Z)
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
         SERIAL_ECHOPAIR(" J", LINEAR_UNIT(planner.xz_skew_factor));
2036
         SERIAL_ECHOPAIR(" J", LINEAR_UNIT(planner.xz_skew_factor));
2036
         SERIAL_ECHOLNPAIR(" K", LINEAR_UNIT(planner.yz_skew_factor));
2037
         SERIAL_ECHOLNPAIR(" K", LINEAR_UNIT(planner.yz_skew_factor));
2037
       #else
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
       #endif
2042
       #endif
2040
     #endif
2043
     #endif
2041
 
2044
 

Loading…
Cancel
Save