Browse Source

Merge pull request #6658 from thinkyhead/bf_cleanup_tuesday

Patch spacing, const, .gitignore
Scott Lahteine 7 years ago
parent
commit
59ab971f81

+ 2
- 4
.gitignore View File

@@ -115,10 +115,8 @@ tags
115 115
 *.dSYM/
116 116
 *.su
117 117
 
118
-#PlatformIO files/dirs
119
-.pioenvs
120
-.piolib
121
-.piolibdeps
118
+# PlatformIO files/dirs
119
+.pio*
122 120
 lib/readme.txt
123 121
 
124 122
 #Visual Studio

+ 2
- 2
Marlin/Conditionals_LCD.h View File

@@ -205,7 +205,7 @@
205 205
     #ifndef LCD_HEIGHT
206 206
       #define LCD_HEIGHT 4
207 207
     #endif
208
-  #else //no panel but just LCD
208
+  #else // no panel but just LCD
209 209
     #if ENABLED(ULTRA_LCD)
210 210
       #ifndef LCD_WIDTH
211 211
         #define LCD_WIDTH 16
@@ -392,4 +392,4 @@
392 392
   #define HAS_RESUME_CONTINUE (ENABLED(NEWPANEL) || ENABLED(EMERGENCY_PARSER))
393 393
   #define HAS_COLOR_LEDS (ENABLED(BLINKM) || ENABLED(RGB_LED) || ENABLED(RGBW_LED))
394 394
 
395
-#endif //CONDITIONALS_LCD_H
395
+#endif // CONDITIONALS_LCD_H

+ 1
- 1
Marlin/Marlin.h View File

@@ -429,4 +429,4 @@ void do_blocking_move_to_xy(const float &x, const float &y, const float &fr_mm_s
429 429
   bool axis_unhomed_error(const bool x, const bool y, const bool z);
430 430
 #endif
431 431
 
432
-#endif //MARLIN_H
432
+#endif // MARLIN_H

+ 8
- 8
Marlin/Marlin_main.cpp View File

@@ -788,7 +788,7 @@ extern "C" {
788 788
     return free_memory;
789 789
   }
790 790
 }
791
-#endif //!SDSUPPORT
791
+#endif // !SDSUPPORT
792 792
 
793 793
 #if ENABLED(DIGIPOT_I2C)
794 794
   extern void digipot_i2c_set_current(int channel, float current);
@@ -1841,7 +1841,7 @@ static void clean_up_after_endstop_or_probe_move() {
1841 1841
       do_blocking_move_to_z(z_dest);
1842 1842
   }
1843 1843
 
1844
-#endif //HAS_BED_PROBE
1844
+#endif // HAS_BED_PROBE
1845 1845
 
1846 1846
 #if HAS_PROBING_PROCEDURE || HOTENDS > 1 || ENABLED(Z_PROBE_ALLEN_KEY) || ENABLED(Z_PROBE_SLED) || ENABLED(NOZZLE_CLEAN_FEATURE) || ENABLED(NOZZLE_PARK_FEATURE) || ENABLED(DELTA_AUTO_CALIBRATION)
1847 1847
 
@@ -3208,7 +3208,7 @@ void unknown_command_error() {
3208 3208
     next_busy_signal_ms = ms + host_keepalive_interval * 1000UL;
3209 3209
   }
3210 3210
 
3211
-#endif //HOST_KEEPALIVE_FEATURE
3211
+#endif // HOST_KEEPALIVE_FEATURE
3212 3212
 
3213 3213
 bool position_is_reachable(const float target[XYZ]
3214 3214
   #if HAS_BED_PROBE
@@ -3421,7 +3421,7 @@ inline void gcode_G4() {
3421 3421
     );
3422 3422
   }
3423 3423
 
3424
-#endif //FWRETRACT
3424
+#endif // FWRETRACT
3425 3425
 
3426 3426
 #if ENABLED(NOZZLE_CLEAN_FEATURE)
3427 3427
   /**
@@ -7032,7 +7032,7 @@ inline void gcode_M111() {
7032 7032
     inline void gcode_M129() { baricuda_e_to_p_pressure = 0; }
7033 7033
   #endif
7034 7034
 
7035
-#endif //BARICUDA
7035
+#endif // BARICUDA
7036 7036
 
7037 7037
 /**
7038 7038
  * M140: Set bed temperature
@@ -9385,7 +9385,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
9385 9385
     for (uint8_t j = 0; j < MIXING_STEPPERS; j++)
9386 9386
       mixing_factor[j] = mixing_virtual_tool_mix[tmp_extruder][j];
9387 9387
 
9388
-  #else //!MIXING_EXTRUDER || MIXING_VIRTUAL_TOOLS <= 1
9388
+  #else // !MIXING_EXTRUDER || MIXING_VIRTUAL_TOOLS <= 1
9389 9389
 
9390 9390
     #if HOTENDS > 1
9391 9391
 
@@ -9677,7 +9677,7 @@ void tool_change(const uint8_t tmp_extruder, const float fr_mm_s/*=0.0*/, bool n
9677 9677
     SERIAL_ECHO_START;
9678 9678
     SERIAL_ECHOLNPAIR(MSG_ACTIVE_EXTRUDER, (int)active_extruder);
9679 9679
 
9680
-  #endif //!MIXING_EXTRUDER || MIXING_VIRTUAL_TOOLS <= 1
9680
+  #endif // !MIXING_EXTRUDER || MIXING_VIRTUAL_TOOLS <= 1
9681 9681
 }
9682 9682
 
9683 9683
 /**
@@ -9968,7 +9968,7 @@ void process_next_command() {
9968 9968
 
9969 9969
         case 928: // M928: Start SD write
9970 9970
           gcode_M928(); break;
9971
-      #endif //SDSUPPORT
9971
+      #endif // SDSUPPORT
9972 9972
 
9973 9973
       case 31: // M31: Report time since the start of SD print or last M109
9974 9974
         gcode_M31(); break;

+ 1
- 1
Marlin/blinkm.cpp View File

@@ -42,5 +42,5 @@ void SendColors(byte red, byte grn, byte blu) {
42 42
   Wire.endTransmission();
43 43
 }
44 44
 
45
-#endif //BLINKM
45
+#endif // BLINKM
46 46
 

+ 1
- 1
Marlin/boards.h View File

@@ -98,4 +98,4 @@
98 98
 
99 99
 #define MB(board) (MOTHERBOARD==BOARD_##board)
100 100
 
101
-#endif //__BOARDS_H
101
+#endif // __BOARDS_H

+ 2
- 2
Marlin/cardreader.cpp View File

@@ -54,7 +54,7 @@ CardReader::CardReader() {
54 54
   //power to SD reader
55 55
   #if SDPOWER > -1
56 56
     OUT_WRITE(SDPOWER, HIGH);
57
-  #endif //SDPOWER
57
+  #endif // SDPOWER
58 58
 
59 59
   next_autostart_ms = millis() + 5000;
60 60
 }
@@ -882,4 +882,4 @@ void CardReader::printingHasFinished() {
882 882
   }
883 883
 }
884 884
 
885
-#endif //SDSUPPORT
885
+#endif // SDSUPPORT

+ 2
- 2
Marlin/cardreader.h View File

@@ -183,6 +183,6 @@ extern CardReader card;
183 183
 
184 184
 #define IS_SD_PRINTING (false)
185 185
 
186
-#endif //SDSUPPORT
186
+#endif // SDSUPPORT
187 187
 
188
-#endif //__CARDREADER_H
188
+#endif // __CARDREADER_H

+ 2
- 2
Marlin/configuration_store.cpp View File

@@ -418,7 +418,7 @@ void MarlinSettings::postprocess() {
418 418
       EEPROM_WRITE(ubl_active);
419 419
       EEPROM_WRITE(dummy);
420 420
       EEPROM_WRITE(eeprom_slot);
421
-    #endif //AUTO_BED_LEVELING_UBL
421
+    #endif // AUTO_BED_LEVELING_UBL
422 422
 
423 423
     // 9 floats for DELTA / Z_DUAL_ENDSTOPS
424 424
     #if ENABLED(DELTA)
@@ -795,7 +795,7 @@ void MarlinSettings::postprocess() {
795 795
         EEPROM_READ(dummyb);
796 796
         EEPROM_READ(dummy);
797 797
         EEPROM_READ(dummyui8);
798
-      #endif //AUTO_BED_LEVELING_UBL
798
+      #endif // AUTO_BED_LEVELING_UBL
799 799
 
800 800
       #if ENABLED(DELTA)
801 801
         EEPROM_READ(endstop_adj);               // 3 floats

+ 1
- 1
Marlin/digipot_mcp4451.cpp View File

@@ -76,4 +76,4 @@ void digipot_i2c_init() {
76 76
     digipot_i2c_set_current(i, digipot_motor_current[i]);
77 77
 }
78 78
 
79
-#endif //DIGIPOT_I2C
79
+#endif // DIGIPOT_I2C

+ 1
- 1
Marlin/endstop_interrupts.h View File

@@ -203,4 +203,4 @@ void setup_endstop_interrupts( void ) {
203 203
   // If we arrive here without raising an assertion, each pin has either an EXT-interrupt or a PCI.
204 204
 }
205 205
 
206
-#endif //_ENDSTOP_INTERRUPTS_H_
206
+#endif // _ENDSTOP_INTERRUPTS_H_

+ 1
- 1
Marlin/language.h View File

@@ -305,4 +305,4 @@
305 305
 
306 306
 #include "language_en.h"
307 307
 
308
-#endif //__LANGUAGE_H
308
+#endif // __LANGUAGE_H

+ 1
- 1
Marlin/macros.h View File

@@ -183,4 +183,4 @@
183 183
 #define RECIPROCAL(x) (NEAR_ZERO(x) ? 0.0 : 1.0 / (x))
184 184
 #define FIXFLOAT(f) (f + 0.00001)
185 185
 
186
-#endif //__MACROS_H
186
+#endif // __MACROS_H

+ 1
- 1
Marlin/mesh_bed_leveling.cpp View File

@@ -47,4 +47,4 @@
47 47
     ZERO(z_values);
48 48
   }
49 49
 
50
-#endif  // MESH_BED_LEVELING
50
+#endif // MESH_BED_LEVELING

+ 1
- 1
Marlin/mesh_bed_leveling.h View File

@@ -119,4 +119,4 @@
119 119
 
120 120
   extern mesh_bed_leveling mbl;
121 121
 
122
-#endif  // MESH_BED_LEVELING
122
+#endif // MESH_BED_LEVELING

+ 1
- 1
Marlin/nozzle.h View File

@@ -32,7 +32,7 @@
32 32
                   nozzle_clean_length = fabs(nozzle_clean_start_point[X_AXIS] - nozzle_clean_end_point[X_AXIS]), //abs x size of wipe pad
33 33
                   nozzle_clean_height = fabs(nozzle_clean_start_point[Y_AXIS] - nozzle_clean_end_point[Y_AXIS]); //abs y size of wipe pad
34 34
   constexpr bool nozzle_clean_horizontal = nozzle_clean_length >= nozzle_clean_height; //whether to zig-zag horizontally or vertically
35
-#endif //NOZZLE_CLEAN_FEATURE
35
+#endif // NOZZLE_CLEAN_FEATURE
36 36
 
37 37
 /**
38 38
  * @brief Nozzle class

+ 1
- 1
Marlin/pins.h View File

@@ -568,4 +568,4 @@
568 568
   #define SS_PIN   AVR_SS_PIN
569 569
 #endif
570 570
 
571
-#endif //__PINS_H
571
+#endif // __PINS_H

+ 1
- 1
Marlin/pins_SAV_MKI.h View File

@@ -131,7 +131,7 @@
131 131
   // For LCD SHIFT register LCD
132 132
   #define SR_DATA_PIN         EXT_AUX_SDA_D1
133 133
   #define SR_CLK_PIN          EXT_AUX_SCL_D0
134
-#endif  // SAV_3DLCD
134
+#endif // SAV_3DLCD
135 135
 
136 136
 #if ENABLED(SAV_3DLCD) || ENABLED(SAV_3DGLCD)
137 137
   #define BTN_EN1            EXT_AUX_A1_IO

+ 2
- 2
Marlin/planner.cpp View File

@@ -392,7 +392,7 @@ void Planner::recalculate() {
392 392
     thermalManager.setTargetHotend(t, 0);
393 393
   }
394 394
 
395
-#endif //AUTOTEMP
395
+#endif // AUTOTEMP
396 396
 
397 397
 /**
398 398
  * Maintain fans, paste extruder pressure,
@@ -487,7 +487,7 @@ void Planner::check_axes_activity() {
487 487
         KICKSTART_FAN(2);
488 488
       #endif
489 489
 
490
-    #endif //FAN_KICKSTART_TIME
490
+    #endif // FAN_KICKSTART_TIME
491 491
 
492 492
     #if ENABLED(FAN_SOFT_PWM)
493 493
       #if HAS_FAN0

+ 1
- 1
Marlin/servo.cpp View File

@@ -221,7 +221,7 @@ static void finISR(timer16_Sequence_t timer) {
221 221
           , OCIE3A);    // disable the timer3 output compare A interrupt
222 222
       timerDetach(TIMER3OUTCOMPAREA_INT);
223 223
     }
224
-  #else //!WIRING
224
+  #else // !WIRING
225 225
     // For arduino - in future: call here to a currently undefined function to reset the timer
226 226
     UNUSED(timer);
227 227
   #endif

+ 1
- 1
Marlin/stepper.cpp View File

@@ -1398,7 +1398,7 @@ void Stepper::report_positions() {
1398 1398
     //delay(10);
1399 1399
   }
1400 1400
 
1401
-#endif //HAS_DIGIPOTSS
1401
+#endif // HAS_DIGIPOTSS
1402 1402
 
1403 1403
 #if HAS_DIGIPOTSS || HAS_MOTOR_CURRENT_PWM
1404 1404
 

+ 1
- 1
Marlin/stopwatch.h View File

@@ -114,4 +114,4 @@ class Stopwatch {
114 114
     #endif
115 115
 };
116 116
 
117
-#endif //STOPWATCH_H
117
+#endif // STOPWATCH_H

+ 14
- 15
Marlin/temperature.cpp View File

@@ -601,7 +601,7 @@ float Temperature::get_pid_output(int e) {
601 601
       }
602 602
     #else
603 603
       pid_output = constrain(target_temperature[HOTEND_INDEX], 0, PID_MAX);
604
-    #endif //PID_OPENLOOP
604
+    #endif // PID_OPENLOOP
605 605
 
606 606
     #if ENABLED(PID_DEBUG)
607 607
       SERIAL_ECHO_START;
@@ -615,7 +615,7 @@ float Temperature::get_pid_output(int e) {
615 615
         SERIAL_ECHOPAIR(MSG_PID_DEBUG_CTERM, cTerm[HOTEND_INDEX]);
616 616
       #endif
617 617
       SERIAL_EOL;
618
-    #endif //PID_DEBUG
618
+    #endif // PID_DEBUG
619 619
 
620 620
   #else /* PID off */
621 621
     pid_output = (current_temperature[HOTEND_INDEX] < target_temperature[HOTEND_INDEX]) ? PID_MAX : 0;
@@ -662,11 +662,11 @@ float Temperature::get_pid_output(int e) {
662 662
       SERIAL_ECHO(iTerm_bed);
663 663
       SERIAL_ECHOPGM(" dTerm ");
664 664
       SERIAL_ECHOLN(dTerm_bed);
665
-    #endif //PID_BED_DEBUG
665
+    #endif // PID_BED_DEBUG
666 666
 
667 667
     return pid_output;
668 668
   }
669
-#endif //PIDTEMPBED
669
+#endif // PIDTEMPBED
670 670
 
671 671
 /**
672 672
  * Manage heating activities for extruder hot-ends and a heated bed
@@ -818,7 +818,7 @@ void Temperature::manage_heater() {
818 818
         WRITE_HEATER_BED(LOW);
819 819
       }
820 820
     #endif
821
-  #endif //TEMP_SENSOR_BED != 0
821
+  #endif // TEMP_SENSOR_BED != 0
822 822
 }
823 823
 
824 824
 #define PGM_RD_W(x)   (short)pgm_read_word(&x)
@@ -1188,7 +1188,7 @@ void Temperature::init() {
1188 1188
         bed_minttemp_raw -= OVERSAMPLENR;
1189 1189
       #endif
1190 1190
     }
1191
-  #endif //BED_MINTEMP
1191
+  #endif // BED_MINTEMP
1192 1192
   #ifdef BED_MAXTEMP
1193 1193
     while (analog2tempBed(bed_maxttemp_raw) > BED_MAXTEMP) {
1194 1194
       #if HEATER_BED_RAW_LO_TEMP < HEATER_BED_RAW_HI_TEMP
@@ -1197,7 +1197,7 @@ void Temperature::init() {
1197 1197
         bed_maxttemp_raw += OVERSAMPLENR;
1198 1198
       #endif
1199 1199
     }
1200
-  #endif //BED_MAXTEMP
1200
+  #endif // BED_MAXTEMP
1201 1201
 
1202 1202
   #if ENABLED(PROBING_HEATERS_OFF)
1203 1203
     paused = false;
@@ -1454,7 +1454,7 @@ void Temperature::disable_all_heaters() {
1454 1454
     return (int)max6675_temp;
1455 1455
   }
1456 1456
 
1457
-#endif //HEATER_0_USES_MAX6675
1457
+#endif // HEATER_0_USES_MAX6675
1458 1458
 
1459 1459
 /**
1460 1460
  * Get raw temperatures
@@ -2045,18 +2045,17 @@ void Temperature::isr() {
2045 2045
 
2046 2046
   #if ENABLED(BABYSTEPPING)
2047 2047
     LOOP_XYZ(axis) {
2048
-      int curTodo = babystepsTodo[axis]; //get rid of volatile for performance
2049
-
2048
+      const int curTodo = babystepsTodo[axis]; // get rid of volatile for performance
2050 2049
       if (curTodo > 0) {
2051
-        stepper.babystep((AxisEnum)axis,/*fwd*/true);
2052
-        babystepsTodo[axis]--; //fewer to do next time
2050
+        stepper.babystep((AxisEnum)axis, /*fwd*/true);
2051
+        babystepsTodo[axis]--;
2053 2052
       }
2054 2053
       else if (curTodo < 0) {
2055
-        stepper.babystep((AxisEnum)axis,/*fwd*/false);
2056
-        babystepsTodo[axis]++; //fewer to do next time
2054
+        stepper.babystep((AxisEnum)axis, /*fwd*/false);
2055
+        babystepsTodo[axis]++;
2057 2056
       }
2058 2057
     }
2059
-  #endif //BABYSTEPPING
2058
+  #endif // BABYSTEPPING
2060 2059
 
2061 2060
   #if ENABLED(PINS_DEBUGGING)
2062 2061
     extern bool endstop_monitor_flag;

+ 1
- 1
Marlin/twibus.cpp View File

@@ -201,4 +201,4 @@ void TWIBus::flush() {
201 201
 
202 202
 #endif
203 203
 
204
-#endif //EXPERIMENTAL_I2CBUS
204
+#endif // EXPERIMENTAL_I2CBUS

+ 1
- 1
Marlin/twibus.h View File

@@ -239,4 +239,4 @@ class TWIBus {
239 239
     #endif
240 240
 };
241 241
 
242
-#endif //TWIBUS_H
242
+#endif // TWIBUS_H

+ 16
- 16
Marlin/ultralcd.cpp View File

@@ -291,7 +291,7 @@ uint16_t max_display_update_time = 0;
291 291
         _MENU_ITEM_PART_2(type, ## __VA_ARGS__); \
292 292
       } while(0)
293 293
 
294
-  #else  // !ENCODER_RATE_MULTIPLIER
294
+  #else // !ENCODER_RATE_MULTIPLIER
295 295
     #define ENCODER_RATE_MULTIPLY(F) NOOP
296 296
   #endif // !ENCODER_RATE_MULTIPLIER
297 297
 
@@ -301,10 +301,10 @@ uint16_t max_display_update_time = 0;
301 301
   #if ENABLED(ENCODER_RATE_MULTIPLIER)
302 302
     #define MENU_MULTIPLIER_ITEM_EDIT(type, label, ...) MENU_MULTIPLIER_ITEM(setting_edit_ ## type, label, PSTR(label), ## __VA_ARGS__)
303 303
     #define MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(type, label, ...) MENU_MULTIPLIER_ITEM(setting_edit_callback_ ## type, label, PSTR(label), ## __VA_ARGS__)
304
-  #else //!ENCODER_RATE_MULTIPLIER
304
+  #else // !ENCODER_RATE_MULTIPLIER
305 305
     #define MENU_MULTIPLIER_ITEM_EDIT(type, label, ...) MENU_ITEM(setting_edit_ ## type, label, PSTR(label), ## __VA_ARGS__)
306 306
     #define MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(type, label, ...) MENU_ITEM(setting_edit_callback_ ## type, label, PSTR(label), ## __VA_ARGS__)
307
-  #endif //!ENCODER_RATE_MULTIPLIER
307
+  #endif // !ENCODER_RATE_MULTIPLIER
308 308
 
309 309
   /**
310 310
    * START_SCREEN_OR_MENU generates init code for a screen or menu
@@ -568,10 +568,10 @@ void lcd_status_screen() {
568 568
           }
569 569
         #else
570 570
           expire_status_ms = 0;
571
-        #endif //SDSUPPORT
571
+        #endif // SDSUPPORT
572 572
       }
573 573
     #endif
574
-  #endif //LCD_PROGRESS_BAR
574
+  #endif // LCD_PROGRESS_BAR
575 575
 
576 576
   lcd_implementation_status_screen();
577 577
 
@@ -614,7 +614,7 @@ void lcd_status_screen() {
614 614
 
615 615
     feedrate_percentage = constrain(feedrate_percentage, 10, 999);
616 616
 
617
-  #endif //ULTIPANEL
617
+  #endif // ULTIPANEL
618 618
 }
619 619
 
620 620
 /**
@@ -848,7 +848,7 @@ void kill_screen(const char* lcd_msg) {
848 848
           MENU_ITEM(gcode, MSG_INIT_SDCARD, PSTR("M21")); // Manually initialize the SD-card via user interface
849 849
         #endif
850 850
       }
851
-    #endif //SDSUPPORT
851
+    #endif // SDSUPPORT
852 852
 
853 853
     #if ENABLED(LCD_INFO_MENU)
854 854
       MENU_ITEM(submenu, MSG_INFO_MENU, lcd_info_menu);
@@ -1061,7 +1061,7 @@ void kill_screen(const char* lcd_msg) {
1061 1061
     //
1062 1062
     #if HOTENDS == 1
1063 1063
       MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
1064
-    #else //HOTENDS > 1
1064
+    #else // HOTENDS > 1
1065 1065
       MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N1, &thermalManager.target_temperature[0], 0, HEATER_0_MAXTEMP - 15, watch_temp_callback_E0);
1066 1066
       MENU_MULTIPLIER_ITEM_EDIT_CALLBACK(int3, MSG_NOZZLE MSG_N2, &thermalManager.target_temperature[1], 0, HEATER_1_MAXTEMP - 15, watch_temp_callback_E1);
1067 1067
       #if HOTENDS > 2
@@ -2191,7 +2191,7 @@ void kill_screen(const char* lcd_msg) {
2191 2191
       enqueue_and_echo_command(cmd);
2192 2192
     }
2193 2193
 
2194
-  #endif //PID_AUTOTUNE_MENU
2194
+  #endif // PID_AUTOTUNE_MENU
2195 2195
 
2196 2196
   #if ENABLED(PIDTEMP)
2197 2197
 
@@ -2360,7 +2360,7 @@ void kill_screen(const char* lcd_msg) {
2360 2360
         PID_MENU_ITEMS("", 0);
2361 2361
       #endif // !PID_PARAMS_PER_HOTEND || HOTENDS == 1
2362 2362
 
2363
-    #endif //PIDTEMP
2363
+    #endif // PIDTEMP
2364 2364
 
2365 2365
     //
2366 2366
     // Preheat Material 1 conf
@@ -2724,7 +2724,7 @@ void kill_screen(const char* lcd_msg) {
2724 2724
       END_MENU();
2725 2725
     }
2726 2726
 
2727
-  #endif //SDSUPPORT
2727
+  #endif // SDSUPPORT
2728 2728
 
2729 2729
   #if ENABLED(LCD_INFO_MENU)
2730 2730
 
@@ -3285,7 +3285,7 @@ void kill_screen(const char* lcd_msg) {
3285 3285
       lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW;
3286 3286
     }
3287 3287
 
3288
-  #endif //SDSUPPORT
3288
+  #endif // SDSUPPORT
3289 3289
 
3290 3290
   void menu_action_setting_edit_bool(const char* pstr, bool* ptr) {UNUSED(pstr); *ptr ^= true; lcdDrawUpdate = LCDVIEW_CLEAR_CALL_REDRAW; }
3291 3291
   void menu_action_setting_edit_callback_bool(const char* pstr, bool* ptr, screenFunc_t callback) {
@@ -3483,7 +3483,7 @@ void lcd_update() {
3483 3483
       );
3484 3484
     }
3485 3485
 
3486
-  #endif //SDSUPPORT && SD_DETECT_PIN
3486
+  #endif // SDSUPPORT && SD_DETECT_PIN
3487 3487
 
3488 3488
   const millis_t ms = millis();
3489 3489
   if (ELAPSED(ms, next_lcd_update_ms)
@@ -3533,12 +3533,12 @@ void lcd_update() {
3533 3533
                   SERIAL_ECHOPAIR("  ENCODER_10X_STEPS_PER_SEC: ", ENCODER_10X_STEPS_PER_SEC);
3534 3534
                   SERIAL_ECHOPAIR("  ENCODER_100X_STEPS_PER_SEC: ", ENCODER_100X_STEPS_PER_SEC);
3535 3535
                   SERIAL_EOL;
3536
-                #endif //ENCODER_RATE_MULTIPLIER_DEBUG
3536
+                #endif // ENCODER_RATE_MULTIPLIER_DEBUG
3537 3537
               }
3538 3538
 
3539 3539
               lastEncoderMovementMillis = ms;
3540 3540
             } // encoderRateMultiplierEnabled
3541
-          #endif //ENCODER_RATE_MULTIPLIER
3541
+          #endif // ENCODER_RATE_MULTIPLIER
3542 3542
 
3543 3543
           encoderPosition += (encoderDiff * encoderMultiplier) / ENCODER_PULSES_PER_STEP;
3544 3544
           encoderDiff = 0;
@@ -3829,7 +3829,7 @@ void lcd_reset_alert_level() { lcd_status_message_level = 0; }
3829 3829
         #endif
3830 3830
       #else
3831 3831
         GET_BUTTON_STATES(buttons);
3832
-      #endif //!NEWPANEL
3832
+      #endif // !NEWPANEL
3833 3833
 
3834 3834
     } // next_button_update_ms
3835 3835
 

+ 1
- 1
Marlin/ultralcd.h View File

@@ -148,7 +148,7 @@
148 148
     #define LCD_CLICKED false
149 149
   #endif
150 150
 
151
-#else //no LCD
151
+#else // no LCD
152 152
   inline void lcd_update() {}
153 153
   inline void lcd_init() {}
154 154
   inline bool lcd_hasstatus() { return false; }

+ 1
- 1
Marlin/ultralcd_impl_DOGM.h View File

@@ -874,4 +874,4 @@ static void lcd_implementation_status_screen() {
874 874
 
875 875
 #endif // ULTIPANEL
876 876
 
877
-#endif //__ULTRALCD_IMPL_DOGM_H
877
+#endif // __ULTRALCD_IMPL_DOGM_H

+ 2
- 2
Marlin/ultralcd_impl_HD44780.h View File

@@ -101,7 +101,7 @@ extern volatile uint8_t buttons;  //an extended version of the last checked butt
101 101
     #define LCD_CLICKED ((buttons & B_MI) || (buttons & B_ST))
102 102
   #endif
103 103
 
104
-#endif //ULTIPANEL
104
+#endif // ULTIPANEL
105 105
 
106 106
 ////////////////////////////////////
107 107
 // Create LCD class instance and chipset-specific information
@@ -675,7 +675,7 @@ static void lcd_implementation_status_screen() {
675 675
         LCD_TEMP(thermalManager.degBed(), thermalManager.degTargetBed(), LCD_STR_BEDTEMP[0]);
676 676
       #endif
677 677
 
678
-    #endif  // HOTENDS > 1 || TEMP_SENSOR_BED != 0
678
+    #endif // HOTENDS > 1 || TEMP_SENSOR_BED != 0
679 679
 
680 680
   #endif // LCD_WIDTH >= 20
681 681
 

+ 2
- 2
Marlin/ultralcd_st7920_u8glib_rrd.h View File

@@ -186,5 +186,5 @@ class U8GLIB_ST7920_128X64_RRD : public U8GLIB {
186 186
 
187 187
 #pragma GCC reset_options
188 188
 
189
-#endif //U8GLIB_ST7920
190
-#endif //ULCDST7920_H
189
+#endif // U8GLIB_ST7920
190
+#endif // ULCDST7920_H

+ 2
- 2
Marlin/watchdog.cpp View File

@@ -51,6 +51,6 @@ void watchdog_init() {
51 51
     kill(PSTR("ERR:Please Reset")); //kill blocks //16 characters so it fits on a 16x2 display
52 52
     while (1); //wait for user or serial reset
53 53
   }
54
-#endif //WATCHDOG_RESET_MANUAL
54
+#endif // WATCHDOG_RESET_MANUAL
55 55
 
56
-#endif //USE_WATCHDOG
56
+#endif // USE_WATCHDOG

Loading…
Cancel
Save