Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/2023-May' into MemeyUI-(plagia…
Browse files Browse the repository at this point in the history
…rism-edition)
  • Loading branch information
Lord-Memester committed May 14, 2023
2 parents ab4faeb + 5d2d580 commit 05c09d5
Show file tree
Hide file tree
Showing 34 changed files with 2,972 additions and 3,137 deletions.
36 changes: 18 additions & 18 deletions Marlin/Configuration.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/** Aquila UBL Mriscoc ProUI
/** Aquila BLT Mriscoc ProUI
* Marlin 3D Printer Firmware
* Copyright (c) 2022 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
Expand Down Expand Up @@ -673,8 +673,8 @@
* PIDTEMP : PID temperature control (~4.1K)
* MPCTEMP : Predictive Model temperature control. (~1.8K without auto-tune)
*/
#define PIDTEMP // See the PID Tuning Guide at https://reprap.org/wiki/PID_Tuning
//#define MPCTEMP // ** EXPERIMENTAL ** See https://marlinfw.org/docs/features/model_predictive_control.html
//#define PIDTEMP // See the PID Tuning Guide at https://reprap.org/wiki/PID_Tuning
#define MPCTEMP // ** EXPERIMENTAL ** See https://marlinfw.org/docs/features/model_predictive_control.html

#define PID_MAX 255 // Limit hotend current while PID is active (see PID_FUNCTIONAL_RANGE below); 255=full current
#define PID_K1 0.95 // Smoothing factor within any PID loop
Expand Down Expand Up @@ -1993,8 +1993,8 @@
*/
//#define AUTO_BED_LEVELING_3POINT
//#define AUTO_BED_LEVELING_LINEAR
//#define AUTO_BED_LEVELING_BILINEAR // MRiscoC BLTouch auto level
#define AUTO_BED_LEVELING_UBL
#define AUTO_BED_LEVELING_BILINEAR // MRiscoC BLTouch auto level
//#define AUTO_BED_LEVELING_UBL
//#define MESH_BED_LEVELING

/**
Expand Down Expand Up @@ -2063,7 +2063,7 @@
/**
* Enable the G26 Mesh Validation Pattern tool.
*/
//#define G26_MESH_VALIDATION
#define G26_MESH_VALIDATION
#if ENABLED(G26_MESH_VALIDATION)
#define MESH_TEST_NOZZLE_SIZE 0.4 // (mm) Diameter of primary nozzle.
#define MESH_TEST_LAYER_HEIGHT 0.2 // (mm) Default layer height for G26.
Expand Down Expand Up @@ -2333,7 +2333,7 @@
*/
#define EEPROM_SETTINGS // Persistent storage with M500 and M501 // Ender Configs
//#define DISABLE_M503 // Saves ~2700 bytes of flash. Disable for release!
//#define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.
#define EEPROM_CHITCHAT // Give feedback on EEPROM commands. Disable to save PROGMEM.
#define EEPROM_BOOT_SILENT // Keep M503 quiet and only give errors during first load
#if ENABLED(EEPROM_SETTINGS)
#define EEPROM_AUTO_INIT // Init EEPROM automatically on any errors. // Ender Configs
Expand Down Expand Up @@ -2375,16 +2375,16 @@
//#define PREHEAT_1_TEMP_CHAMBER 35
#define PREHEAT_1_FAN_SPEED 0 // Value from 0 to 255

//#define PREHEAT_2_LABEL "ABS" //PETG
//#define PREHEAT_2_TEMP_HOTEND 240
//#define PREHEAT_2_TEMP_BED 75
#define PREHEAT_2_LABEL "ABS" //PETG
#define PREHEAT_2_TEMP_HOTEND 240
#define PREHEAT_2_TEMP_BED 75
//#define PREHEAT_2_TEMP_CHAMBER 35
//#define PREHEAT_2_FAN_SPEED 0 // Value from 0 to 255
#define PREHEAT_2_FAN_SPEED 0 // Value from 0 to 255

//#define PREHEAT_3_LABEL "Warmup"
//#define PREHEAT_3_TEMP_HOTEND 200
//#define PREHEAT_3_TEMP_BED 50
//#define PREHEAT_3_FAN_SPEED 0
#define PREHEAT_3_LABEL "Warmup"
#define PREHEAT_3_TEMP_HOTEND 200
#define PREHEAT_3_TEMP_BED 50
#define PREHEAT_3_FAN_SPEED 0

//#define PREHEAT_4_LABEL "TPU"
//#define PREHEAT_4_TEMP_HOTEND 230
Expand Down Expand Up @@ -2456,7 +2456,7 @@
*
* Caveats: The ending Z should be the same as starting Z.
*/
//#define NOZZLE_CLEAN_FEATURE
#define NOZZLE_CLEAN_FEATURE

#if ENABLED(NOZZLE_CLEAN_FEATURE)
#define NOZZLE_CLEAN_PATTERN_LINE // Provide 'G12 P0' - a simple linear cleaning pattern
Expand Down Expand Up @@ -3375,7 +3375,7 @@
#define HAS_TOOLBAR 1
#endif
#define HAS_PLOT 1
//#define HAS_ESDIAG 1
#define HAS_ESDIAG 1
#define HAS_CGCODE 1
////#define HAS_LOCKSCREEN 1
//#define HAS_SD_EXTENDER 1 // Enable to support SD card extender cables
Expand All @@ -3388,7 +3388,7 @@
#define PLR_TUNE_ITEM // Power-loss Recovery option in Tune Menu
#endif
#if ENABLED(BLTOUCH)
//#define HS_MENU_ITEM // BLTOUCH_HS_MODE menu option
#define HS_MENU_ITEM // BLTOUCH_HS_MODE menu option
#endif
#if ENABLED(HAS_PLOT)
#define PLOT_TUNE_ITEM // Temperature Plot Graph item in Tune Menu
Expand Down
13 changes: 8 additions & 5 deletions Marlin/Configuration_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -663,9 +663,12 @@
#endif

/**
* Use one of the PWM fans as a redundant part-cooling fan
* Assign more PWM fans for part cooling, synchronized with Fan 0
*/
//#define REDUNDANT_PART_COOLING_FAN 2 // Index of the fan to sync with FAN 0.
//#define REDUNDANT_PART_COOLING_FAN 1 // Index of the first fan to synchronize with Fan 0
#ifdef REDUNDANT_PART_COOLING_FAN
//#define NUM_REDUNDANT_FANS 1 // Number of sequential fans to synchronize with Fan 0
#endif

// @section extruder

Expand Down Expand Up @@ -1701,7 +1704,7 @@
* an option on the LCD screen to continue the print from the last-known
* point in the file.
*/
//#define POWER_LOSS_RECOVERY
#define POWER_LOSS_RECOVERY
#if ENABLED(POWER_LOSS_RECOVERY)
#define PLR_ENABLED_DEFAULT false // Power Loss Recovery enabled by default. (Set with 'M413 Sn' & M500)
//#define BACKUP_POWER_SUPPLY // Backup power / UPS to move the steppers on power loss
Expand Down Expand Up @@ -4027,7 +4030,7 @@
*
* Implement M486 to allow Marlin to skip objects
*/
//#define CANCEL_OBJECTS // MRiscoC Enabled M486 to skip objects
#define CANCEL_OBJECTS // MRiscoC Enabled M486 to skip objects
#if ENABLED(CANCEL_OBJECTS)
#define CANCEL_OBJECTS_REPORTING // Emit the current object as a status message
#endif
Expand Down Expand Up @@ -4415,4 +4418,4 @@
//#define SOFT_RESET_ON_KILL // Use a digital button to soft-reset the controller after KILL

// Report uncleaned reset reason from register r2 instead of MCUSR. Supported by Optiboot on AVR.
//#define OPTIBOOT_RESET_REASON
//#define OPTIBOOT_RESET_REASON
4 changes: 2 additions & 2 deletions Marlin/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
* here we define this default string as the date where the latest release
* version was tagged.
*/
//#define STRING_DISTRIBUTION_DATE "2023-05-13"
//#define STRING_DISTRIBUTION_DATE "2023-05-14"

#define STRING_DISTRIBUTION_DATE "2023-05-13"
#define STRING_DISTRIBUTION_DATE "2023-05-14"
#define STRING_DISTRIBUTION_TIME __TIME__

/**
Expand Down
33 changes: 0 additions & 33 deletions Marlin/src/gcode/control/M400.cpp

This file was deleted.

8 changes: 2 additions & 6 deletions Marlin/src/gcode/temp/M106_M107.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,7 @@
void GcodeSuite::M106() {
const uint8_t pfan = parser.byteval('P', _ALT_P);
if (pfan >= _CNT_P) return;
#if REDUNDANT_PART_COOLING_FAN
if (pfan == REDUNDANT_PART_COOLING_FAN) return;
#endif
if (FAN_IS_REDUNDANT(pfan)) return;

#if ENABLED(EXTRA_FAN_SPEED)
const uint16_t t = parser.intval('T');
Expand Down Expand Up @@ -102,9 +100,7 @@ void GcodeSuite::M106() {
void GcodeSuite::M107() {
const uint8_t pfan = parser.byteval('P', _ALT_P);
if (pfan >= _CNT_P) return;
#if REDUNDANT_PART_COOLING_FAN
if (pfan == REDUNDANT_PART_COOLING_FAN) return;
#endif
if (FAN_IS_REDUNDANT(pfan)) return;

thermalManager.set_fan_speed(pfan, 0);

Expand Down
4 changes: 2 additions & 2 deletions Marlin/src/inc/Conditionals_LCD.h
Original file line number Diff line number Diff line change
Expand Up @@ -679,8 +679,8 @@

#endif

// No inactive extruders with SWITCHING_NOZZLE or Průša MMU1
#if HAS_SWITCHING_NOZZLE || HAS_PRUSA_MMU1
// No inactive extruders with SWITCHING_NOZZLE or Průša MMU1 or just 1 E stepper exists
#if HAS_SWITCHING_NOZZLE || HAS_PRUSA_MMU1 || E_STEPPERS < 2
#undef DISABLE_OTHER_EXTRUDERS
#endif

Expand Down
5 changes: 5 additions & 0 deletions Marlin/src/inc/Conditionals_adv.h
Original file line number Diff line number Diff line change
Expand Up @@ -1280,3 +1280,8 @@
#define MULTISTEPPING_LIMIT 128
#define MULTISTEPPING_LIMIT_WARNING 1
#endif

// One redundant cooling fan by default
#if defined(REDUNDANT_PART_COOLING_FAN) && !defined(NUM_REDUNDANT_FANS)
#define NUM_REDUNDANT_FANS 1
#endif
6 changes: 4 additions & 2 deletions Marlin/src/inc/SanityCheck.h
Original file line number Diff line number Diff line change
Expand Up @@ -1853,8 +1853,10 @@ static_assert(COUNT(arm) == LOGICAL_AXES, "AXIS_RELATIVE_MODES must contain " _L
#ifdef REDUNDANT_PART_COOLING_FAN
#if FAN_COUNT < 2
#error "REDUNDANT_PART_COOLING_FAN requires a board with at least two PWM fans."
#else
static_assert(WITHIN(REDUNDANT_PART_COOLING_FAN, 1, FAN_COUNT - 1), "REDUNDANT_PART_COOLING_FAN must be between 1 and " STRINGIFY(DECREMENT(FAN_COUNT)) ".");
#elif !WITHIN(REDUNDANT_PART_COOLING_FAN, 1, FAN_COUNT - 1)
static_assert(false, "REDUNDANT_PART_COOLING_FAN must be between 1 and " STRINGIFY(DECREMENT(FAN_COUNT)) ".");
#elif !WITHIN(REDUNDANT_PART_COOLING_FAN + NUM_REDUNDANT_FANS - 1, 1, FAN_COUNT - 1)
#error "Not enough fans available for NUM_REDUNDANT_FANS."
#endif
#endif

Expand Down
2 changes: 1 addition & 1 deletion Marlin/src/inc/Version.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* version was tagged.
*/
#ifndef STRING_DISTRIBUTION_DATE
#define STRING_DISTRIBUTION_DATE "2023-05-13"
#define STRING_DISTRIBUTION_DATE "2023-05-14"
#endif

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ void LanguageMenu::onRedraw(draw_mode_t) {
bool LanguageMenu::onTouchEnd(uint8_t tag) {

if (tag > 0 && tag <= NUM_LANGUAGES) {
lang = tag - 1;
ftdi_language = tag - 1;
GOTO_SCREEN(StatusScreen);
return true;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
#include "../../../../MarlinCore.h"
#if ENABLED(TOUCH_UI_FTDI_EVE)
#include "language.h"
uint8_t lang = 0;
uint8_t ftdi_language = 0;
#endif
26 changes: 13 additions & 13 deletions Marlin/src/lcd/extui/ia_creality/FileNavigator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,23 +95,23 @@ void FileNavigator::getFiles(uint16_t index) {
// Clear currently drawn screen
for (int i = 0; i < DISPLAY_FILES; i++) {
for (int j = 0; j < 20; j++)
rtscheck.RTS_SndData(0, SDFILE_ADDR + (i * 20) + j);
rts.sendData(0, SDFILE_ADDR + (i * 20) + j);
}

for (int j = 0; j < 10; j++) {
rtscheck.RTS_SndData(0, Printfilename + j); // clear screen.
rtscheck.RTS_SndData(0, Choosefilename + j); // clear filename
rts.sendData(0, Printfilename + j); // clear screen.
rts.sendData(0, Choosefilename + j); // clear filename
}
for (int j = 0; j < 8; j++)
rtscheck.RTS_SndData(0, FilenameCount + j);
rts.sendData(0, FilenameCount + j);
for (int j = 1; j <= DISPLAY_FILES; j++) {
rtscheck.RTS_SndData(10, FilenameIcon + j);
rtscheck.RTS_SndData(10, FilenameIcon1 + j);
rts.sendData(10, FilenameIcon + j);
rts.sendData(10, FilenameIcon1 + j);
}

if (currentindex == 0 && folderdepth > 0) { // Add a link to go up a folder
files--;
rtscheck.RTS_SndData("Up Directory", SDFILE_ADDR);
rts.sendData("Up Directory", SDFILE_ADDR);
fcnt++;
}
else if (currentindex == DISPLAY_FILES && folderdepth > 0)
Expand All @@ -123,18 +123,18 @@ void FileNavigator::getFiles(uint16_t index) {
if (filelen > 20) {
char *buf = (char *)filelist.filename();
buf[18] = '\0'; // cutoff at screen edge
rtscheck.RTS_SndData(buf, (SDFILE_ADDR + (fcnt * 20)));
rts.sendData(buf, (SDFILE_ADDR + (fcnt * 20)));
}
else
rtscheck.RTS_SndData(filelist.filename(), (SDFILE_ADDR + (fcnt * 20)));
rts.sendData(filelist.filename(), (SDFILE_ADDR + (fcnt * 20)));

if (filelist.isDir()) {
rtscheck.RTS_SndData((uint8_t)4, FilenameIcon + (fcnt+1));
rtscheck.RTS_SndData((unsigned long)0x041F, (FilenameNature + ((1+fcnt) * 16))); // Change BG of selected line to Blue
rts.sendData((uint8_t)4, FilenameIcon + (fcnt+1));
rts.sendData((unsigned long)0x041F, (FilenameNature + ((1+fcnt) * 16))); // Change BG of selected line to Blue
}
else {
rtscheck.RTS_SndData((uint8_t)0, FilenameIcon + (fcnt+1));
rtscheck.RTS_SndData((unsigned long)0xFFFF, (FilenameNature + ((1+fcnt) * 16))); // white
rts.sendData((uint8_t)0, FilenameIcon + (fcnt+1));
rts.sendData((unsigned long)0xFFFF, (FilenameNature + ((1+fcnt) * 16))); // white
}
SERIAL_ECHOLNPGM("-", seek, " '", filelist.filename(), "' '", currentfoldername, "", filelist.shortFilename(), "'\n");
fcnt++;
Expand Down
Loading

0 comments on commit 05c09d5

Please sign in to comment.