Bladeren bron

Suppress warnings

esenapaj 8 jaren geleden
bovenliggende
commit
58177a1602
4 gewijzigde bestanden met toevoegingen van 19 en 7 verwijderingen
  1. 2
    0
      Marlin/MarlinSerial.cpp
  2. 4
    2
      Marlin/Marlin_main.cpp
  3. 12
    4
      Marlin/planner.cpp
  4. 1
    1
      Marlin/ultralcd.cpp

+ 2
- 0
Marlin/MarlinSerial.cpp Bestand weergeven

@@ -542,6 +542,8 @@ MarlinSerial customizedSerial;
542 542
             case state_M410:
543 543
               quickstop_stepper();
544 544
               break;
545
+            default:
546
+              break;
545 547
           }
546 548
           state = state_RESET;
547 549
         }

+ 4
- 2
Marlin/Marlin_main.cpp Bestand weergeven

@@ -5965,7 +5965,7 @@ void quickstop_stepper() {
5965 5965
    * Use either 'M421 X<linear> Y<linear> Z<linear>' or 'M421 I<xindex> J<yindex> Z<linear>'
5966 5966
    */
5967 5967
   inline void gcode_M421() {
5968
-    int8_t px, py;
5968
+    int8_t px = 0, py = 0;
5969 5969
     float z = 0;
5970 5970
     bool hasX, hasY, hasZ, hasI, hasJ;
5971 5971
     if ((hasX = code_seen('X'))) px = mbl.probe_index_x(code_value_axis_units(X_AXIS));
@@ -6210,7 +6210,9 @@ inline void gcode_M503() {
6210 6210
     disable_e3();
6211 6211
     delay(100);
6212 6212
 
6213
-    millis_t next_tick = 0;
6213
+    #if HAS_BUZZER
6214
+      millis_t next_tick = 0;
6215
+    #endif
6214 6216
 
6215 6217
     // Wait for filament insert by user and press button
6216 6218
     lcd_filament_change_show_message(FILAMENT_CHANGE_MESSAGE_INSERT);

+ 12
- 4
Marlin/planner.cpp Bestand weergeven

@@ -397,8 +397,12 @@ void Planner::check_axes_activity() {
397 397
   #endif
398 398
 
399 399
   #if ENABLED(BARICUDA)
400
-    unsigned char tail_valve_pressure = baricuda_valve_pressure,
401
-                  tail_e_to_p_pressure = baricuda_e_to_p_pressure;
400
+    #if HAS_HEATER_1
401
+      unsigned char tail_valve_pressure = baricuda_valve_pressure;
402
+    #endif
403
+    #if HAS_HEATER_2
404
+      unsigned char tail_e_to_p_pressure = baricuda_e_to_p_pressure;
405
+    #endif
402 406
   #endif
403 407
 
404 408
   if (blocks_queued()) {
@@ -411,8 +415,12 @@ void Planner::check_axes_activity() {
411 415
 
412 416
     #if ENABLED(BARICUDA)
413 417
       block = &block_buffer[block_buffer_tail];
414
-      tail_valve_pressure = block->valve_pressure;
415
-      tail_e_to_p_pressure = block->e_to_p_pressure;
418
+      #if HAS_HEATER_1
419
+        tail_valve_pressure = block->valve_pressure;
420
+      #endif
421
+      #if HAS_HEATER_2
422
+        tail_e_to_p_pressure = block->e_to_p_pressure;
423
+      #endif
416 424
     #endif
417 425
 
418 426
     for (uint8_t b = block_buffer_tail; b != block_buffer_head; b = next_block_index(b)) {

+ 1
- 1
Marlin/ultralcd.cpp Bestand weergeven

@@ -230,7 +230,7 @@ uint8_t lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; // Set when the LCD needs to
230 230
     for (uint8_t _drawLineNr = 0; _drawLineNr < LCD_HEIGHT; _drawLineNr++, _lineNr++) { \
231 231
       _menuItemNr = 0;
232 232
 
233
-  #define START_SCREEN() _START_SCREEN(0)
233
+  #define START_SCREEN() _START_SCREEN(NOOP)
234 234
 
235 235
   /**
236 236
    * START_MENU generates the init code for a menu function

Laden…
Annuleren
Opslaan