diff --git a/Marlin/src/feature/leds/neopixel.cpp b/Marlin/src/feature/leds/neopixel.cpp index d2aa2e9fd9..93e8348cfd 100644 --- a/Marlin/src/feature/leds/neopixel.cpp +++ b/Marlin/src/feature/leds/neopixel.cpp @@ -53,11 +53,11 @@ Adafruit_NeoPixel Marlin_NeoPixel::adaneo1(NEOPIXEL_PIXELS, NEOPIXEL_PIN, NEOPIX #endif void Marlin_NeoPixel::set_color(const uint32_t color) { - if (get_neo_index() >= 0) { + if (get_neo_index() >= 0) { set_pixel_color(get_neo_index(), color); set_neo_index(-1); } - else { + else { for (uint16_t i = 0; i < pixels(); ++i) { #ifdef NEOPIXEL_BKGD_LED_INDEX if (i == NEOPIXEL_BKGD_LED_INDEX && color != 0x000000) { diff --git a/Marlin/src/gcode/feature/leds/M150.cpp b/Marlin/src/gcode/feature/leds/M150.cpp index a2497961ac..88e4ec1e27 100644 --- a/Marlin/src/gcode/feature/leds/M150.cpp +++ b/Marlin/src/gcode/feature/leds/M150.cpp @@ -47,7 +47,7 @@ * M150 P127 ; Set LED 50% brightness * M150 P ; Set LED full brightness * M150 I1 R ; Set NEOPIXEL index 1 to red - */ + */ void GcodeSuite::M150() { #if ENABLED(NEOPIXEL_LED) neo.set_neo_index(parser.intval('I', -1)); diff --git a/Marlin/src/inc/Conditionals_LCD.h b/Marlin/src/inc/Conditionals_LCD.h index b1b2cf9b82..877518c897 100644 --- a/Marlin/src/inc/Conditionals_LCD.h +++ b/Marlin/src/inc/Conditionals_LCD.h @@ -121,10 +121,10 @@ #define IS_U8GLIB_SSD1306 #elif ENABLED(FYSETC_242_OLED_12864) - + #define IS_RRD_SC #define U8GLIB_SH1106 - + #define LED_CONTROL_MENU #define NEOPIXEL_LED #undef NEOPIXEL_TYPE @@ -136,7 +136,7 @@ #ifndef NEOPIXEL_BRIGHTNESS #define NEOPIXEL_BRIGHTNESS 127 #endif - + #if ENABLED(PSU_CONTROL) #define LED_BACKLIGHT_TIMEOUT 10000 #endif diff --git a/Marlin/src/lcd/dogm/ultralcd_DOGM.h b/Marlin/src/lcd/dogm/ultralcd_DOGM.h index d1a60e7705..b83a175589 100644 --- a/Marlin/src/lcd/dogm/ultralcd_DOGM.h +++ b/Marlin/src/lcd/dogm/ultralcd_DOGM.h @@ -124,11 +124,11 @@ #endif #elif ENABLED(FYSETC_242_OLED_12864) - + // FYSETC OLED 2.42" 128 × 64 FULL GRAPHICS CONTROLLER - + #define FORCE_SOFT_SPI // SW-SPI - + #if ENABLED(ALTERNATIVE_LCD) #define U8G_CLASS U8GLIB_SSD1306_128X64_2X // 4 stripes #else diff --git a/Marlin/src/lcd/menu/menu_configuration.cpp b/Marlin/src/lcd/menu/menu_configuration.cpp index 457f3dd174..0bd1c1e655 100644 --- a/Marlin/src/lcd/menu/menu_configuration.cpp +++ b/Marlin/src/lcd/menu/menu_configuration.cpp @@ -310,7 +310,7 @@ void menu_advanced_settings(); #if HAS_FAN editable.uint8 = uint8_t(ui.material_preset[m].fan_speed); EDIT_ITEM_N(percent, m, MSG_FAN_SPEED, &editable.uint8, 0, 255, []{ ui.material_preset[MenuItemBase::itemIndex].fan_speed = editable.uint8; }); - #endif + #endif #if HAS_TEMP_HOTEND EDIT_ITEM(uint16_3, MSG_NOZZLE, &ui.material_preset[m].hotend_temp, MINTEMP_ALL, MAXTEMP_ALL - HOTEND_OVERSHOOT); #endif diff --git a/Marlin/src/module/motion.cpp b/Marlin/src/module/motion.cpp index f7732f577f..cbf52bae22 100644 --- a/Marlin/src/module/motion.cpp +++ b/Marlin/src/module/motion.cpp @@ -1502,7 +1502,7 @@ void set_axis_not_trusted(const AxisEnum axis) { // Skip to next if target position is behind current. So it only moves away from endstop. if (phaseDelta < 0) phaseDelta += 1024; - // Convert TMC µsteps(phase) to whole Marlin µsteps to effector backout direction to mm + // Convert TMC µsteps(phase) to whole Marlin µsteps to effector backout direction to mm const float mmDelta = int16_t(phaseDelta / phasePerUStep) * effectorBackoutDir * planner.steps_to_mm[axis]; // Optional debug messages diff --git a/Marlin/src/pins/stm32f4/pins_LERDGE_K.h b/Marlin/src/pins/stm32f4/pins_LERDGE_K.h index 2146c4a528..114c440715 100644 --- a/Marlin/src/pins/stm32f4/pins_LERDGE_K.h +++ b/Marlin/src/pins/stm32f4/pins_LERDGE_K.h @@ -100,7 +100,7 @@ #define TEMP_BED_PIN PC0 // Analog Input // Lergde-K can choose thermocouple/thermistor mode in software. -// For use with thermistors, these pins must be OUT/LOW. +// For use with thermistors, these pins must be OUT/LOW. // This is done automatically. #define TEMP_0_TR_ENABLE_PIN PF10 #define TEMP_1_TR_ENABLE_PIN PF9