Selaa lähdekoodia

Merge pull request #8296 from thinkyhead/bf1_incidentals

[1.1] Misc. fixes picked up from 2.0.x
Scott Lahteine 7 vuotta sitten
vanhempi
commit
fff4d71ba5
No account linked to committer's email address
5 muutettua tiedostoa jossa 14 lisäystä ja 11 poistoa
  1. 6
    4
      Marlin/Marlin_main.cpp
  2. 1
    1
      Marlin/SdBaseFile.cpp
  3. 2
    2
      Marlin/configuration_store.cpp
  4. 2
    1
      Marlin/gcode.cpp
  5. 3
    3
      Marlin/temperature.cpp

+ 6
- 4
Marlin/Marlin_main.cpp Näytä tiedosto

@@ -5055,6 +5055,8 @@ void home_all_axes() { gcode_G28(true); }
5055 5055
 
5056 5056
         bool zig = PR_OUTER_END & 1;  // Always end at RIGHT and BACK_PROBE_BED_POSITION
5057 5057
 
5058
+        measured_z = 0;
5059
+
5058 5060
         // Outer loop is Y with PROBE_Y_FIRST disabled
5059 5061
         for (uint8_t PR_OUTER_VAR = 0; PR_OUTER_VAR < PR_OUTER_END && !isnan(measured_z); PR_OUTER_VAR++) {
5060 5062
 
@@ -8705,8 +8707,8 @@ inline void gcode_M117() { lcd_setstatus(parser.string_arg); }
8705 8707
 /**
8706 8708
  * M118: Display a message in the host console.
8707 8709
  *
8708
- *  A  Append '// ' for an action command, as in OctoPrint
8709
- *  E  Have the host 'echo:' the text
8710
+ *  A1  Append '// ' for an action command, as in OctoPrint
8711
+ *  E1  Have the host 'echo:' the text
8710 8712
  */
8711 8713
 inline void gcode_M118() {
8712 8714
   if (parser.boolval('E')) SERIAL_ECHO_START();
@@ -10965,7 +10967,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
10965 10967
 
10966 10968
           #if ENABLED(PARKING_EXTRUDER) // Dual Parking extruder
10967 10969
             const float z_diff = hotend_offset[Z_AXIS][active_extruder] - hotend_offset[Z_AXIS][tmp_extruder];
10968
-            float z_raise = 0;
10970
+            float z_raise = PARKING_EXTRUDER_SECURITY_RAISE;
10969 10971
             if (!no_move) {
10970 10972
 
10971 10973
               const float parkingposx[] = PARKING_EXTRUDER_PARKING_X,
@@ -10988,7 +10990,6 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
10988 10990
                 SERIAL_ECHOLNPGM("Starting Autopark");
10989 10991
                 if (DEBUGGING(LEVELING)) DEBUG_POS("current position:", current_position);
10990 10992
               #endif
10991
-              z_raise = PARKING_EXTRUDER_SECURITY_RAISE;
10992 10993
               current_position[Z_AXIS] += z_raise;
10993 10994
               #if ENABLED(DEBUG_LEVELING_FEATURE)
10994 10995
                 SERIAL_ECHOLNPGM("(1) Raise Z-Axis ");
@@ -13026,6 +13027,7 @@ void prepare_move_to_destination() {
13026 13027
     #if ENABLED(CNC_WORKSPACE_PLANES)
13027 13028
       AxisEnum p_axis, q_axis, l_axis;
13028 13029
       switch (workspace_plane) {
13030
+        default:
13029 13031
         case PLANE_XY: p_axis = X_AXIS; q_axis = Y_AXIS; l_axis = Z_AXIS; break;
13030 13032
         case PLANE_ZX: p_axis = Z_AXIS; q_axis = X_AXIS; l_axis = Y_AXIS; break;
13031 13033
         case PLANE_YZ: p_axis = Y_AXIS; q_axis = Z_AXIS; l_axis = X_AXIS; break;

+ 1
- 1
Marlin/SdBaseFile.cpp Näytä tiedosto

@@ -1384,7 +1384,7 @@ bool SdBaseFile::rmdir() {
1384 1384
  * the value zero, false, is returned for failure.
1385 1385
  */
1386 1386
 bool SdBaseFile::rmRfStar() {
1387
-  uint16_t index;
1387
+  uint32_t index;
1388 1388
   SdBaseFile f;
1389 1389
   rewind();
1390 1390
   while (curPosition_ < fileSize_) {

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

@@ -64,7 +64,7 @@
64 64
  *  195  M206 XYZ  home_offset                      (float x3)
65 65
  *  207  M218 XYZ  hotend_offset                    (float x3 per additional hotend)
66 66
  *
67
- * Global Leveling:
67
+ * Global Leveling:                                 4 bytes
68 68
  *  219            z_fade_height                    (float)
69 69
  *
70 70
  * MESH_BED_LEVELING:                               43 bytes
@@ -80,7 +80,7 @@
80 80
  * ABL_PLANAR:                                      36 bytes
81 81
  *  270            planner.bed_level_matrix         (matrix_3x3 = float x9)
82 82
  *
83
- * AUTO_BED_LEVELING_BILINEAR:                      47 bytes
83
+ * AUTO_BED_LEVELING_BILINEAR:                      46 bytes
84 84
  *  306            GRID_MAX_POINTS_X                (uint8_t)
85 85
  *  307            GRID_MAX_POINTS_Y                (uint8_t)
86 86
  *  308            bilinear_grid_spacing            (int x2)

+ 2
- 1
Marlin/gcode.cpp Näytä tiedosto

@@ -150,7 +150,7 @@ void GCodeParser::parse(char *p) {
150 150
   #endif
151 151
 
152 152
   // Only use string_arg for these M codes
153
-  if (letter == 'M') switch (codenum) { case 23: case 28: case 30: case 117: case 118: case 928: string_arg = p; return; default: break; }
153
+  if (letter == 'M') switch (codenum) { case 23: case 28: case 30: case 117: case 928: string_arg = p; return; default: break; }
154 154
 
155 155
   #if ENABLED(DEBUG_GCODE_PARSER)
156 156
     const bool debug = codenum == 800;
@@ -162,6 +162,7 @@ void GCodeParser::parse(char *p) {
162 162
    * Most codes ignore 'string_arg', but those that want a string will get the right pointer.
163 163
    * The following loop assigns the first "parameter" having no numeric value to 'string_arg'.
164 164
    * This allows M0/M1 with expire time to work: "M0 S5 You Win!"
165
+   * For 'M118' you must use 'E1' and 'A1' rather than just 'E' or 'A'
165 166
    */
166 167
   string_arg = NULL;
167 168
   while (char code = *p++) {                    // Get the next parameter. A NUL ends the loop

+ 3
- 3
Marlin/temperature.cpp Näytä tiedosto

@@ -1813,8 +1813,8 @@ void Temperature::isr() {
1813 1813
 
1814 1814
     // Macros for Slow PWM timer logic
1815 1815
     #define _SLOW_PWM_ROUTINE(NR, src) \
1816
-      soft_pwm_ ##NR = src; \
1817
-      if (soft_pwm_ ##NR > 0) { \
1816
+      soft_pwm_count_ ##NR = src; \
1817
+      if (soft_pwm_count_ ##NR > 0) { \
1818 1818
         if (state_timer_heater_ ##NR == 0) { \
1819 1819
           if (state_heater_ ##NR == 0) state_timer_heater_ ##NR = MIN_STATE_TIME; \
1820 1820
           state_heater_ ##NR = 1; \
@@ -1831,7 +1831,7 @@ void Temperature::isr() {
1831 1831
     #define SLOW_PWM_ROUTINE(n) _SLOW_PWM_ROUTINE(n, soft_pwm_amount[n])
1832 1832
 
1833 1833
     #define PWM_OFF_ROUTINE(NR) \
1834
-      if (soft_pwm_ ##NR < slow_pwm_count) { \
1834
+      if (soft_pwm_count_ ##NR < slow_pwm_count) { \
1835 1835
         if (state_timer_heater_ ##NR == 0) { \
1836 1836
           if (state_heater_ ##NR == 1) state_timer_heater_ ##NR = MIN_STATE_TIME; \
1837 1837
           state_heater_ ##NR = 0; \

Loading…
Peruuta
Tallenna