Skip to content

Commit

Permalink
Update - Capitalize I2C, Power-Loss
Browse files Browse the repository at this point in the history
  • Loading branch information
classicrocker883 committed Sep 16, 2024
1 parent 26c2916 commit 18c4c53
Show file tree
Hide file tree
Showing 80 changed files with 150 additions and 148 deletions.
4 changes: 2 additions & 2 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
Expand Up @@ -3174,7 +3174,7 @@
//#define U8GLIB_SH1106_EINSTART

//
// Overlord OLED display/controller with i2c buzzer and LEDs
// Overlord OLED display/controller with I2C buzzer and LEDs
//
//#define OVERLORD_OLED

Expand Down Expand Up @@ -3485,7 +3485,7 @@
#define HS_MENU_ITEM // BLTOUCH_HS_MODE menu option (56 bytes of flash)
#endif
#define PROUI_ITEM_PLOT // Temp Plot Graph item in Tune/Prepare Menu (688 bytes of flash)
//#define PROUI_ITEM_PLR // Power-loss Recovery option in Tune Menu (POWER_LOSS_RECOVERY 3400 bytes of flash)
//#define PROUI_ITEM_PLR // Power-Loss Recovery option in Tune Menu (POWER_LOSS_RECOVERY 3400 bytes of flash)
//#define PROUI_ITEM_JD // Juntion Deviation item in Tune Menu (only if JD is enabled)
#define PROUI_ITEM_ADVK // Linear Advance item in Tune Menu (only if LA is enabled)
#define SHOW_REAL_POS
Expand Down
4 changes: 2 additions & 2 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@
#define PID_FAN_SCALING_LIN_FACTOR (PID_FAN_SCALING_AT_FULL_SPEED-DEFAULT_Kf)/255.0

#else
#define PID_FAN_SCALING_LIN_FACTOR (0) // Power-loss due to cooling = Kf * (fan_speed)
#define PID_FAN_SCALING_LIN_FACTOR (0) // Power-Loss due to cooling = Kf * (fan_speed)
#define DEFAULT_Kf 10 // A constant value added to the PID-tuner
#define PID_FAN_SCALING_MIN_SPEED 10 // Minimum fan speed at which to enable PID_FAN_SCALING
#endif
Expand Down Expand Up @@ -4198,7 +4198,7 @@
* Alternative Supplier: https://reliabuild3d.com/
*
* Reliabuild encoders have been modified to improve reliability.
* @section i2c encoders
* @section I2C encoders
*/

//#define I2C_POSITION_ENCODERS
Expand Down
8 changes: 4 additions & 4 deletions Marlin/src/MarlinCore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ inline void manage_inactivity(const bool no_stepper_sleep=false) {
* - Update the Print Job Timer state
* - Update the Beeper queue
* - Read Buttons and Update the LCD
* - Run i2c Position Encoders
* - Run I2C Position Encoders
* - Auto-report Temperatures / SD Status
* - Update the Průša MMU2
* - Handle Joystick jogging
Expand Down Expand Up @@ -825,7 +825,7 @@ void idle(const bool no_stepper_sleep/*=false*/) {
// Handle UI input / draw events
ui.update();

// Run i2c Position Encoders
// Run I2C Position Encoders
#if ENABLED(I2C_POSITION_ENCODERS)
{
static millis_t i2cpem_next_update_ms;
Expand Down Expand Up @@ -1053,14 +1053,14 @@ inline void tmc_standby_setup() {
* - Prepare (disable) board JTAG and Debug ports
* - Init serial for a connected MKS TFT with WiFi
* - Install Marlin custom Exception Handlers, if set.
* - Init Marlin's HAL interfaces (for SPI, i2c, etc.)
* - Init Marlin's HAL interfaces (for SPI, I2C, etc.)
* - Init some optional hardware and features:
* • MAX Thermocouple pins
* • Duet Smart Effector
* • Filament Runout Sensor
* • TMC220x Stepper Drivers (Serial)
* • PSU control
* • Power-loss Recovery
* • Power-Loss Recovery
* • Stepper Driver Reset: DISABLE
* • TMC Stepper Drivers (SPI)
* • Run hal.init_board() for additional pins setup
Expand Down
10 changes: 6 additions & 4 deletions Marlin/src/core/language.h
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,8 @@
#define STR_OFF "OFF"
#define STR_ENDSTOP_HIT "TRIGGERED"
#define STR_ENDSTOP_OPEN "Open"
#define STR_FILAMENT_PRESENT "PRESENT"
#define STR_RUNOUT_DETECTED "Runout Detected"
#define STR_DUPLICATION_MODE "Duplication mode: "
#define STR_SOFT_MIN " Min: "
#define STR_SOFT_MAX " Max: "
Expand Down Expand Up @@ -256,7 +258,7 @@
#define STR_T_MAXTEMP "MAXTEMP triggered"
#define STR_T_MINTEMP "MINTEMP triggered"
#define STR_ERR_PROBING_FAILED "Probing Failed"
#define STR_ZPROBE_OUT_SER "Z Probe Past Bed"
#define STR_ZPROBE_OUT_SER "Z-Probe Past Bed"

// Debug
#define STR_DEBUG_PREFIX "DEBUG:"
Expand Down Expand Up @@ -287,7 +289,7 @@
#define STR_SCARA_P_T_Z "P<theta-psi-offset> T<theta-offset> Z<home-offset>"
#define STR_ENDSTOP_ADJUSTMENT "Endstop adjustment"
#define STR_SKEW_FACTOR "Skew Factor"
#define STR_FILAMENT_SETTINGS "Filament settings"
#define STR_VOLUMETRIC_EXTRUSION "Volumetric Extrusion"
#define STR_MAX_ACCELERATION "Max Acceleration (units/s2)"
#define STR_MAX_FEEDRATES "Max feedrates (units/s)"
#define STR_ACCELERATION_P_R_T "Acceleration (units/s2) (P<print-accel> R<retract-accel> T<travel-accel>)"
Expand All @@ -306,13 +308,13 @@
#define STR_RECOVER_S_F "Recover (S<length> F<feedrate>)"
#define STR_AUTO_RETRACT_S "Auto-Retract (S<enable>)"
#define STR_FILAMENT_LOAD_UNLOAD "Filament load/unload"
#define STR_POWER_LOSS_RECOVERY "Power-loss recovery"
#define STR_POWER_LOSS_RECOVERY "Power-Loss Recovery"
#define STR_FILAMENT_RUNOUT_SENSOR "Filament runout sensor"
#define STR_DRIVER_STEPPING_MODE "Driver stepping mode"
#define STR_STEPPER_DRIVER_CURRENT "Stepper driver current"
#define STR_TMC_STEALTH "StealthChop"
#define STR_HYBRID_THRESHOLD "Hybrid Threshold"
#define STR_STALLGUARD_THRESHOLD "StallGuard threshold"
#define STR_STALLGUARD_THRESHOLD "StallGuard Threshold"
#define STR_HOME_OFFSET "Home offset"
#define STR_SOFT_ENDSTOPS "Soft endstops"
#define STR_MATERIAL_HEATUP "Material heatup parameters"
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/feature/digipot/digipot.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#pragma once

//
// Header for MCP4018 and MCP4451 current control i2c devices
// Header for MCP4018 and MCP4451 current control I2C devices
//
class DigipotI2C {
public:
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/feature/leds/leds.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ void LEDLights::set_color(const LEDColor &incol

#if ENABLED(BLINKM)

// This variant uses i2c to send the RGB components to the device.
// This variant uses I2C to send the RGB components to the device.
blinkm_set_led_color(incol);

#endif
Expand Down
6 changes: 3 additions & 3 deletions Marlin/src/feature/powerloss.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void PrintJobRecovery::save(const bool force/*=false*/, const float zraise/*=POW
// Tell the LCD about the outage, even though it is about to die
TERN_(EXTENSIBLE_UI, ExtUI::onPowerLoss());

// Disable all heaters to reduce power loss
// Disable all heaters to reduce power-loss
thermalManager.disable_all_heaters();

#if ENABLED(BACKUP_POWER_SUPPLY)
Expand Down Expand Up @@ -374,8 +374,8 @@ void PrintJobRecovery::write() {
open(false);
file.seekSet(0);
const int16_t ret = file.write(&info, sizeof(info));
if (ret == -1) DEBUG_ECHOLNPGM("Power-loss file write failed.");
if (!file.close()) DEBUG_ECHOLNPGM("Power-loss file close failed.");
if (ret == -1) DEBUG_ECHOLNPGM("Power-Loss file write failed.");
if (!file.close()) DEBUG_ECHOLNPGM("Power-Loss file close failed.");
}

/**
Expand Down
8 changes: 4 additions & 4 deletions Marlin/src/feature/twibus.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ typedef void (*twiReceiveFunc_t)(int bytes);
typedef void (*twiRequestFunc_t)();

/**
* For a light i2c protocol that runs on two boards running Marlin see:
* For a light I2C protocol that runs on two boards running Marlin see:
* See https://github.com/MarlinFirmware/Marlin/issues/4776#issuecomment-246262879
*/
#if I2C_SLAVE_ADDRESS > 0

void i2c_on_receive(int bytes); // Demo i2c onReceive handler
void i2c_on_request(); // Demo i2c onRequest handler
void i2c_on_receive(int bytes); // Demo I2C onReceive handler
void i2c_on_request(); // Demo I2C onRequest handler

#endif

Expand Down Expand Up @@ -183,7 +183,7 @@ class TWIBus {
uint8_t capture(char *dst, const uint8_t bytes);

/**
* @brief Flush the i2c bus.
* @brief Flush the I2C bus.
* @details Get all bytes on the bus and throw them away.
*/
static void flush();
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/gcode/config/M200-M205.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
TERN_(MARLIN_SMALL_BUILD, return);

if (!forReplay) {
report_heading(forReplay, F(STR_FILAMENT_SETTINGS), false);
report_heading(forReplay, F(STR_VOLUMETRIC_EXTRUSION), false);
if (!parser.volumetric_enabled) SERIAL_ECHOPGM(" (Disabled):");
SERIAL_EOL();
report_echo_start(forReplay);
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/gcode/feature/adc/M3426.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void GcodeSuite::M3426() {
SERIAL_ECHOLNPGM("V:", result, " C:", channel, " G:", gain, " I:", inverted ? 1 : 0);
}
else
SERIAL_ERROR_MSG("MCP342X i2c error");
SERIAL_ERROR_MSG("MCP342X I2C error");
}
else
SERIAL_ERROR_MSG("MCP342X Bad request");
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/gcode/feature/i2c/M260_M261.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ void GcodeSuite::M261() {
if (i2c.addr && bytes && bytes <= TWIBUS_BUFFER_SIZE)
i2c.relay(bytes, style);
else
SERIAL_ERROR_MSG("Bad i2c request");
SERIAL_ERROR_MSG("Bad I2C request");
}

#endif
6 changes: 3 additions & 3 deletions Marlin/src/gcode/gcode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ void GcodeSuite::get_destination_from_command() {
#endif

#if ENABLED(POWER_LOSS_RECOVERY) && !PIN_EXISTS(POWER_LOSS)
// Only update power loss recovery on moves with E
// Only update power-loss recovery on moves with E
if (recovery.enabled && IS_SD_PRINTING() && seen.e && (seen.x || seen.y))
recovery.save();
#endif
Expand Down Expand Up @@ -837,8 +837,8 @@ void GcodeSuite::process_parsed_command(const bool no_ok/*=false*/) {
#endif

#if ENABLED(EXPERIMENTAL_I2CBUS)
case 260: M260(); break; // M260: Send data to an i2c slave
case 261: M261(); break; // M261: Request data from an i2c slave
case 260: M260(); break; // M260: Send data to an I2C slave
case 261: M261(); break; // M261: Request data from an I2C slave
#endif

#if ENABLED(PREVENT_COLD_EXTRUSION)
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/gcode/gcode.h
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@
* M250 - Set LCD contrast: "M250 C<contrast>" (0-63). (Requires LCD support)
* M255 - Set LCD sleep time: "M255 S<minutes>" (0-99). (Requires an LCD with brightness or sleep/wake)
* M256 - Set LCD brightness: "M256 B<brightness>" (0-255). (Requires an LCD with brightness control)
* M260 - i2c Send Data (Requires EXPERIMENTAL_I2CBUS)
* M261 - i2c Request Data (Requires EXPERIMENTAL_I2CBUS)
* M260 - I2C Send Data (Requires EXPERIMENTAL_I2CBUS)
* M261 - I2C Request Data (Requires EXPERIMENTAL_I2CBUS)
* M280 - Set servo position absolute: "M280 P<index> S<angle|µs>". (Requires servos)
* M281 - Set servo min|max position: "M281 P<index> L<min> U<max>". (Requires EDITABLE_SERVO_ANGLES)
* M282 - Detach servo: "M282 P<index>". (Requires SERVO_DETACH_GCODE)
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/gcode/probe/M851.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void GcodeSuite::M851() {
void GcodeSuite::M851_report(const bool forReplay/*=true*/) {
TERN_(MARLIN_SMALL_BUILD, return);

report_heading_etc(forReplay, F(STR_Z_PROBE_OFFSET));
report_heading_etc(forReplay, F(STR_PROBE_OFFSET));
SERIAL_ECHOPGM_P(
#if HAS_PROBE_XY_OFFSET
PSTR(" M851 X"), LINEAR_UNIT(probe.offset_xy.x),
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/TFTGLCD/marlinui_TFTGLCD.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
//
// This is just to map common functions (across different panels) onto the same
// macro name. The mapping is independent of whether the button is directly connected or
// via a shift/i2c register.
// via a shift/I2C register.

////////////////////////////////////
// Create LCD class instance and chipset-specific information
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/e3v2/proui/endstop_diag.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ void draw_es_state(const bool is_hit, const bool is_fil) {
const uint8_t LM = 130;
DWINUI::cursor.x = LM;
DWIN_Draw_Rectangle(1, HMI_data.PopupBg_Color, LM, DWINUI::cursor.y, LM + 120, DWINUI::cursor.y + 20);
is_fil ? (is_hit ? DWINUI::Draw_String(RGB(16, 63, 16), F("PRESENT")) : DWINUI::Draw_String(RGB(31, 31, 16), F("Runout Detected"))) :
is_fil ? (is_hit ? DWINUI::Draw_String(RGB(16, 63, 16), F(STR_FILAMENT_PRESENT)) : DWINUI::Draw_String(RGB(31, 31, 16), F(STR_RUNOUT_DETECTED))) :
(is_hit ? DWINUI::Draw_String(RGB(31, 31, 16), F(STR_ENDSTOP_HIT)) : DWINUI::Draw_String(RGB(16, 63, 16), F(STR_ENDSTOP_OPEN)));
DWINUI::MoveBy(0, 25);
}
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/dgus/DGUSScreenHandlerBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class DGUSScreenHandler {
// Hook for motor lock and unlook
static void handleMotorLockUnlock(DGUS_VP_Variable &var, void *val_ptr);
#if ENABLED(POWER_LOSS_RECOVERY)
// Hook for power loss recovery.
// Hook for power-loss recovery.
static void handlePowerLossRecovery(DGUS_VP_Variable &var, void *val_ptr);
#endif
// Hook for settings
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/dgus/fysetc/DGUSDisplayDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ constexpr uint16_t VP_MOVE_E1 = 0x2112;
constexpr uint16_t VP_HOME_ALL = 0x2120;
constexpr uint16_t VP_MOTOR_LOCK_UNLOK = 0x2130;

// Power loss recovery
// Power-Loss recovery
constexpr uint16_t VP_POWER_LOSS_RECOVERY = 0x2180;

// Fan Control Buttons , switch between "off" and "on"
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/dgus/hiprecy/DGUSDisplayDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ constexpr uint16_t VP_MOVE_E1 = 0x2112;
constexpr uint16_t VP_HOME_ALL = 0x2120;
constexpr uint16_t VP_MOTOR_LOCK_UNLOK = 0x2130;

// Power loss recovery
// Power-Loss recovery
constexpr uint16_t VP_POWER_LOSS_RECOVERY = 0x2180;

// Fan Control Buttons , switch between "off" and "on"
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/dgus/mks/DGUSDisplayDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ constexpr uint16_t SP_T_Bed_Set = 0x5040;

constexpr uint16_t VP_BACK_PAGE = 0x1600;
constexpr uint16_t VP_SETTINGS = 0x1620;
// Power loss recovery
// Power-Loss recovery
constexpr uint16_t VP_POWER_LOSS_RECOVERY = 0x1680;
/* -------------------------------0x2000-0x2FFF------------------------------- */
// Temperatures.
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/extui/dgus/origin/DGUSDisplayDef.h
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ constexpr uint16_t VP_MOVE_E1 = 0x2112;
constexpr uint16_t VP_HOME_ALL = 0x2120;
constexpr uint16_t VP_MOTOR_LOCK_UNLOK = 0x2130;

// Power loss recovery
// Power-Loss recovery
constexpr uint16_t VP_POWER_LOSS_RECOVERY = 0x2180;

// Fan Control Buttons , switch between "off" and "on"
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/lcd/marlinui.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ class MarlinUI {

#if ENABLED(SOUND_MENU_ITEM)
static bool sound_on; // Initialized by settings.load()
static bool tick_on; // added to disable encoder tick/beep while keeping sound on
static bool tick_on; // Initialized by settings.load()
#else
static constexpr bool sound_on = true;
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/libs/BL24CXX.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

/********************************************************************************
* @file BL24CXX.h
* @brief i2c EEPROM for Ender-3 v2 board (4.2.2)
* @brief I2C EEPROM for Ender-3 v2 board (4.2.2)
********************************************************************************/

/******************** IIC ********************/
Expand Down
14 changes: 7 additions & 7 deletions Marlin/src/module/planner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ uint32_t Planner::max_acceleration_steps_per_s2[DISTINCT_AXES]; // (steps/s^2) D
#endif

#if ENABLED(DISTINCT_E_FACTORS)
uint8_t Planner::last_extruder = 0; // Respond to extruder change
uint8_t Planner::last_extruder = 0; // Respond to extruder change
#endif

#if ENABLED(DIRECT_STEPPING)
Expand All @@ -178,18 +178,18 @@ uint32_t Planner::max_acceleration_steps_per_s2[DISTINCT_AXES]; // (steps/s^2) D

#if HAS_EXTRUDERS
int16_t Planner::flow_percentage[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(100); // Extrusion factor for each extruder
float Planner::e_factor[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(1.00f); // The flow percentage and volumetric multiplier combine to scale E movement
float Planner::e_factor[EXTRUDERS] = ARRAY_BY_EXTRUDERS1(1.00f); // The flow percentage and volumetric multiplier combine to scale E movement
#endif

#if DISABLED(NO_VOLUMETRICS)
float Planner::filament_size[EXTRUDERS], // diameter of filament (in millimeters), typically around 1.75 or 2.85, 0 disables the volumetric calculations for the extruder
float Planner::filament_size[EXTRUDERS], // Diameter of filament (in millimeters), typically around 1.75 or 2.85, 0 disables the volumetric calculations for the extruder
Planner::volumetric_area_nominal = CIRCLE_AREA(float(DEFAULT_NOMINAL_FILAMENT_DIA) * 0.5f), // Nominal cross-sectional area
Planner::volumetric_multiplier[EXTRUDERS]; // Reciprocal of cross-sectional area of filament (in mm^2). Pre-calculated to reduce computation in the planner
Planner::volumetric_multiplier[EXTRUDERS]; // Reciprocal of cross-sectional area of filament (in mm^2). Pre-calculated to reduce computation in the planner
#endif

#if ENABLED(VOLUMETRIC_EXTRUDER_LIMIT)
float Planner::volumetric_extruder_limit[EXTRUDERS], // max mm^3/sec the extruder is able to handle
Planner::volumetric_extruder_feedrate_limit[EXTRUDERS]; // pre calculated extruder feedrate limit based on volumetric_extruder_limit; pre-calculated to reduce computation in the planner
float Planner::volumetric_extruder_limit[EXTRUDERS], // Max mm^3/sec the extruder is able to handle
Planner::volumetric_extruder_feedrate_limit[EXTRUDERS]; // Pre-calculated extruder feedrate limit based on volumetric_extruder_limit; pre-calculated to reduce computation in the planner
#endif

#ifdef MAX7219_DEBUG_SLOWDOWN
Expand All @@ -202,7 +202,7 @@ uint32_t Planner::max_acceleration_steps_per_s2[DISTINCT_AXES]; // (steps/s^2) D
matrix_3x3 Planner::bed_level_matrix; // Transform to compensate for bed level
#endif
#if ENABLED(ENABLE_LEVELING_FADE_HEIGHT)
float Planner::z_fade_height, // Initialized by settings.load()
float Planner::z_fade_height, // Initialized by settings.load()
Planner::inverse_z_fade_height,
Planner::last_fade_z;
#endif
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/gd32f1/pins_TRIGORILLA_V006.h
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
// Temperature Sensors
//
#define TEMP_0_PIN PC4 // T0
#define TEMP_1_PIN -1 // T1 PA6 used for power loss
#define TEMP_1_PIN -1 // T1 PA6 used for power-loss
#define TEMP_BED_PIN PB0 // TB

//
Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/pins/stm32f1/pins_BTT_SKR_MINI_E3_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,10 @@
#endif

//
// Power-loss Detection
// Power-Loss Detection
//
#ifndef POWER_LOSS_PIN
#define POWER_LOSS_PIN PC12 // Power Loss Detection: PWR-DET
#define POWER_LOSS_PIN PC12 // Power-Loss Detection: PWR-DET
#endif

//
Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/pins/stm32f1/pins_MKS_ROBIN.h
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
#define FIL_RUNOUT_PIN PF11 // MT_DET

//
// Power loss detection
// Power-Loss detection
//
#define POWER_LOSS_PIN PA2 // PW_DET

Expand Down
Loading

0 comments on commit 18c4c53

Please sign in to comment.