mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Add ability to disable Power Loss Recovery
This commit is contained in:
@@ -12623,6 +12623,12 @@ msgid ""
|
||||
"layer."
|
||||
msgstr ""
|
||||
|
||||
msgid "Disable Power Loss Recovery"
|
||||
msgstr ""
|
||||
|
||||
msgid "Enable this to disable power loss recovery commands in generated G-code"
|
||||
msgstr ""
|
||||
|
||||
msgid "Nozzle type"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -12912,6 +12912,12 @@ msgstr ""
|
||||
"Enable this to allow the camera on the printer to check the quality of the "
|
||||
"first layer."
|
||||
|
||||
msgid "Disable Power Loss Recovery"
|
||||
msgstr "Disable Power Loss Recovery"
|
||||
|
||||
msgid "Enable this to disable power loss recovery commands in generated G-code"
|
||||
msgstr "Enable this to disable power loss recovery commands in generated G-code"
|
||||
|
||||
msgid "Nozzle type"
|
||||
msgstr ""
|
||||
|
||||
|
||||
@@ -136,6 +136,7 @@
|
||||
"60"
|
||||
],
|
||||
"scan_first_layer": "0",
|
||||
"disable_power_loss_recovery": "0",
|
||||
"silent_mode": "0",
|
||||
"single_extruder_multi_material": "1",
|
||||
"support_air_filtration": "0",
|
||||
|
||||
@@ -3086,7 +3086,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
||||
|
||||
//BBS: close powerlost recovery
|
||||
{
|
||||
if (is_bbl_printers && m_second_layer_things_done) {
|
||||
if (is_bbl_printers && m_second_layer_things_done && print.config().disable_power_loss_recovery.value != true) {
|
||||
file.write("; close powerlost recovery\n");
|
||||
file.write("M1003 S0\n");
|
||||
}
|
||||
@@ -3168,7 +3168,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
||||
|
||||
//BBS: close powerlost recovery
|
||||
{
|
||||
if (is_bbl_printers && m_second_layer_things_done) {
|
||||
if (is_bbl_printers && m_second_layer_things_done && print.config().disable_power_loss_recovery.value != true) {
|
||||
file.write("; close powerlost recovery\n");
|
||||
file.write("M1003 S0\n");
|
||||
}
|
||||
@@ -4388,7 +4388,7 @@ LayerResult GCode::process_layer(
|
||||
if (!first_layer && !m_second_layer_things_done) {
|
||||
if (print.is_BBL_printer()) {
|
||||
// BBS: open powerlost recovery
|
||||
{
|
||||
if (print.config().disable_power_loss_recovery.value != true) {
|
||||
gcode += "; open powerlost recovery\n";
|
||||
gcode += "M1003 S1\n";
|
||||
}
|
||||
|
||||
@@ -1007,7 +1007,7 @@ static std::vector<std::string> s_Preset_printer_options {
|
||||
"nozzle_height", "master_extruder_id",
|
||||
"default_print_profile", "inherits",
|
||||
"silent_mode",
|
||||
"scan_first_layer", "wrapping_detection_layers", "wrapping_exclude_area", "machine_load_filament_time", "machine_unload_filament_time", "machine_tool_change_time", "time_cost", "machine_pause_gcode", "template_custom_gcode",
|
||||
"scan_first_layer", "disable_power_less_recovery", "wrapping_detection_layers", "wrapping_exclude_area", "machine_load_filament_time", "machine_unload_filament_time", "machine_tool_change_time", "time_cost", "machine_pause_gcode", "template_custom_gcode",
|
||||
"nozzle_type", "nozzle_hrc","auxiliary_fan", "nozzle_volume","upward_compatible_machine", "z_hop_types", "travel_slope", "retract_lift_enforce","support_chamber_temp_control","support_air_filtration","printer_structure",
|
||||
"best_object_pos", "head_wrap_detect_zone",
|
||||
"host_type", "print_host", "printhost_apikey", "bbl_use_printhost",
|
||||
|
||||
@@ -3364,6 +3364,12 @@ void PrintConfigDef::init_fff_params()
|
||||
def->mode = comAdvanced;
|
||||
def->set_default_value(new ConfigOptionBool(false));
|
||||
|
||||
// BBS
|
||||
def = this->add("disable_power_loss_recovery", coBool);
|
||||
def->label = L("Disable Power Loss Recovery");
|
||||
def->tooltip = L("Enable this to disable power loss recovery commands in generated G-code");
|
||||
def->mode = comDevelop;
|
||||
def->set_default_value(new ConfigOptionBool(false));
|
||||
|
||||
//BBS
|
||||
// def = this->add("spaghetti_detector", coBool);
|
||||
|
||||
@@ -1272,6 +1272,7 @@ PRINT_CONFIG_CLASS_DEFINE(
|
||||
((ConfigOptionIntsNullable, filament_flush_temp))
|
||||
// BBS
|
||||
((ConfigOptionBool, scan_first_layer))
|
||||
((ConfigOptionsBool, disable_power_loss_recovery))
|
||||
((ConfigOptionBool, enable_wrapping_detection))
|
||||
((ConfigOptionInt, wrapping_detection_layers))
|
||||
((ConfigOptionPoints, wrapping_exclude_area))
|
||||
|
||||
@@ -4356,6 +4356,7 @@ void TabPrinter::build_fff()
|
||||
optgroup->append_single_option_line("pellet_modded_printer", "pellet-flow-coefficient");
|
||||
optgroup->append_single_option_line("bbl_use_printhost");
|
||||
optgroup->append_single_option_line("scan_first_layer");
|
||||
optgroup->append_single_option_line("disable_power_loss_recovery");
|
||||
//option = optgroup->get_option("wrapping_exclude_area");
|
||||
//option.opt.full_width = true;
|
||||
//optgroup->append_single_option_line(option);
|
||||
@@ -5181,7 +5182,7 @@ void TabPrinter::toggle_options()
|
||||
if (m_active_page->title() == L("Basic information")) {
|
||||
|
||||
// SoftFever: hide BBL specific settings
|
||||
for (auto el : {"scan_first_layer", "bbl_calib_mark_logo", "bbl_use_printhost"})
|
||||
for (auto el : {"scan_first_layer", "disable_power_loss_recovery", "bbl_calib_mark_logo", "bbl_use_printhost"})
|
||||
toggle_line(el, is_BBL_printer);
|
||||
|
||||
// SoftFever: hide non-BBL settings
|
||||
|
||||
Reference in New Issue
Block a user