Browse Source

Whitespace cleanup

Scott Lahteine 5 years ago
parent
commit
d6682c8609

+ 2
- 2
Marlin/src/feature/leds/neopixel.cpp View File

53
 #endif
53
 #endif
54
 
54
 
55
 void Marlin_NeoPixel::set_color(const uint32_t color) {
55
 void Marlin_NeoPixel::set_color(const uint32_t color) {
56
-  if (get_neo_index() >= 0) { 
56
+  if (get_neo_index() >= 0) {
57
     set_pixel_color(get_neo_index(), color);
57
     set_pixel_color(get_neo_index(), color);
58
     set_neo_index(-1);
58
     set_neo_index(-1);
59
   }
59
   }
60
-  else { 
60
+  else {
61
     for (uint16_t i = 0; i < pixels(); ++i) {
61
     for (uint16_t i = 0; i < pixels(); ++i) {
62
       #ifdef NEOPIXEL_BKGD_LED_INDEX
62
       #ifdef NEOPIXEL_BKGD_LED_INDEX
63
         if (i == NEOPIXEL_BKGD_LED_INDEX && color != 0x000000) {
63
         if (i == NEOPIXEL_BKGD_LED_INDEX && color != 0x000000) {

+ 1
- 1
Marlin/src/gcode/feature/leds/M150.cpp View File

47
  *   M150 P127       ; Set LED 50% brightness
47
  *   M150 P127       ; Set LED 50% brightness
48
  *   M150 P          ; Set LED full brightness
48
  *   M150 P          ; Set LED full brightness
49
  *   M150 I1 R       ; Set NEOPIXEL index 1 to red
49
  *   M150 I1 R       ; Set NEOPIXEL index 1 to red
50
- */  
50
+ */
51
 void GcodeSuite::M150() {
51
 void GcodeSuite::M150() {
52
   #if ENABLED(NEOPIXEL_LED)
52
   #if ENABLED(NEOPIXEL_LED)
53
     neo.set_neo_index(parser.intval('I', -1));
53
     neo.set_neo_index(parser.intval('I', -1));

+ 3
- 3
Marlin/src/inc/Conditionals_LCD.h View File

121
   #define IS_U8GLIB_SSD1306
121
   #define IS_U8GLIB_SSD1306
122
 
122
 
123
 #elif ENABLED(FYSETC_242_OLED_12864)
123
 #elif ENABLED(FYSETC_242_OLED_12864)
124
-      
124
+
125
   #define IS_RRD_SC
125
   #define IS_RRD_SC
126
   #define U8GLIB_SH1106
126
   #define U8GLIB_SH1106
127
-    
127
+
128
   #define LED_CONTROL_MENU
128
   #define LED_CONTROL_MENU
129
   #define NEOPIXEL_LED
129
   #define NEOPIXEL_LED
130
   #undef NEOPIXEL_TYPE
130
   #undef NEOPIXEL_TYPE
136
   #ifndef NEOPIXEL_BRIGHTNESS
136
   #ifndef NEOPIXEL_BRIGHTNESS
137
     #define NEOPIXEL_BRIGHTNESS 127
137
     #define NEOPIXEL_BRIGHTNESS 127
138
   #endif
138
   #endif
139
-    
139
+
140
   #if ENABLED(PSU_CONTROL)
140
   #if ENABLED(PSU_CONTROL)
141
     #define LED_BACKLIGHT_TIMEOUT 10000
141
     #define LED_BACKLIGHT_TIMEOUT 10000
142
   #endif
142
   #endif

+ 3
- 3
Marlin/src/lcd/dogm/ultralcd_DOGM.h View File

124
   #endif
124
   #endif
125
 
125
 
126
 #elif ENABLED(FYSETC_242_OLED_12864)
126
 #elif ENABLED(FYSETC_242_OLED_12864)
127
-  
127
+
128
   // FYSETC OLED 2.42" 128 × 64 FULL GRAPHICS CONTROLLER
128
   // FYSETC OLED 2.42" 128 × 64 FULL GRAPHICS CONTROLLER
129
-      
129
+
130
   #define FORCE_SOFT_SPI                                        // SW-SPI
130
   #define FORCE_SOFT_SPI                                        // SW-SPI
131
-  
131
+
132
   #if ENABLED(ALTERNATIVE_LCD)
132
   #if ENABLED(ALTERNATIVE_LCD)
133
     #define U8G_CLASS U8GLIB_SSD1306_128X64_2X                  // 4 stripes
133
     #define U8G_CLASS U8GLIB_SSD1306_128X64_2X                  // 4 stripes
134
   #else
134
   #else

+ 1
- 1
Marlin/src/lcd/menu/menu_configuration.cpp View File

310
     #if HAS_FAN
310
     #if HAS_FAN
311
       editable.uint8 = uint8_t(ui.material_preset[m].fan_speed);
311
       editable.uint8 = uint8_t(ui.material_preset[m].fan_speed);
312
       EDIT_ITEM_N(percent, m, MSG_FAN_SPEED, &editable.uint8, 0, 255, []{ ui.material_preset[MenuItemBase::itemIndex].fan_speed = editable.uint8; });
312
       EDIT_ITEM_N(percent, m, MSG_FAN_SPEED, &editable.uint8, 0, 255, []{ ui.material_preset[MenuItemBase::itemIndex].fan_speed = editable.uint8; });
313
-    #endif 
313
+    #endif
314
     #if HAS_TEMP_HOTEND
314
     #if HAS_TEMP_HOTEND
315
       EDIT_ITEM(uint16_3, MSG_NOZZLE, &ui.material_preset[m].hotend_temp, MINTEMP_ALL, MAXTEMP_ALL - HOTEND_OVERSHOOT);
315
       EDIT_ITEM(uint16_3, MSG_NOZZLE, &ui.material_preset[m].hotend_temp, MINTEMP_ALL, MAXTEMP_ALL - HOTEND_OVERSHOOT);
316
     #endif
316
     #endif

+ 1
- 1
Marlin/src/module/motion.cpp View File

1502
     // Skip to next if target position is behind current. So it only moves away from endstop.
1502
     // Skip to next if target position is behind current. So it only moves away from endstop.
1503
     if (phaseDelta < 0) phaseDelta += 1024;
1503
     if (phaseDelta < 0) phaseDelta += 1024;
1504
 
1504
 
1505
-    // Convert TMC µsteps(phase) to whole Marlin µsteps to effector backout direction to mm 
1505
+    // Convert TMC µsteps(phase) to whole Marlin µsteps to effector backout direction to mm
1506
     const float mmDelta = int16_t(phaseDelta / phasePerUStep) * effectorBackoutDir * planner.steps_to_mm[axis];
1506
     const float mmDelta = int16_t(phaseDelta / phasePerUStep) * effectorBackoutDir * planner.steps_to_mm[axis];
1507
 
1507
 
1508
     // Optional debug messages
1508
     // Optional debug messages

+ 1
- 1
Marlin/src/pins/stm32f4/pins_LERDGE_K.h View File

100
 #define TEMP_BED_PIN                        PC0   // Analog Input
100
 #define TEMP_BED_PIN                        PC0   // Analog Input
101
 
101
 
102
 // Lergde-K can choose thermocouple/thermistor mode in software.
102
 // Lergde-K can choose thermocouple/thermistor mode in software.
103
-// For use with thermistors, these pins must be OUT/LOW. 
103
+// For use with thermistors, these pins must be OUT/LOW.
104
 // This is done automatically.
104
 // This is done automatically.
105
 #define TEMP_0_TR_ENABLE_PIN                PF10
105
 #define TEMP_0_TR_ENABLE_PIN                PF10
106
 #define TEMP_1_TR_ENABLE_PIN                PF9
106
 #define TEMP_1_TR_ENABLE_PIN                PF9

Loading…
Cancel
Save