24 Commits
1.5.1 ... 1.5.2

Author SHA1 Message Date
Knutwurst
93e90f37f8 Bump build date and version 2023-07-06 16:27:34 +02:00
Oliver Köster
160575dd4f Merge pull request #477 from stklcode/fix/render-folder-regression
partially revert static outputString in RenderCurrentFolder
2023-06-25 16:53:55 +02:00
Stefan Kalscheuer
f10f396cc1 partially revert static outputString in RenderCurrentFolder
The optimization only applies to targets with DGUS2_TFT set. On other
targets the fixed-size array may be of insufficient size.

However, remove the potentially problematic initialization with a single
nullpointer (empty string), as this will be overwritten in the very next
line anyway.

Fixes: a9c018f18c
2023-06-25 15:42:12 +02:00
Knutwurst
e169b0e627 Decrease heater check count to 60000. This fixes #475 2023-06-24 15:18:07 +02:00
Oliver Köster
02d7c31b4c Merge pull request #474 from stklcode/cleanup
Cleanup
2023-06-24 14:52:58 +02:00
Stefan Kalscheuer
b93faf009c github: remove duplicate "Configurations" section from PR template 2023-06-24 14:13:13 +02:00
Stefan Kalscheuer
33c91b345e remove unused PowerKill() 2023-06-24 14:09:27 +02:00
Stefan Kalscheuer
1822172d44 use boolean literals instead of implicit int conversion 2023-06-24 14:04:11 +02:00
Stefan Kalscheuer
0cedfaf9a6 remove unused declarations from anycubic_touchscreen.h 2023-06-24 14:03:21 +02:00
Oliver Köster
0981430d4b Merge pull request #473 from stklcode/fix/render-current-folder
use static initialization for output string in RenderCurrentFolder
2023-06-24 12:50:47 +02:00
Stefan Kalscheuer
a9c018f18c use static initialization for output string in RenderCurrentFolder
The dynamic sized variable outputString may not be properly initialized.
Second issue, we fill the line for directories beyond fileNameLength, so
the initialization is not always sufficient.

We now initialize outputString statically with the maximum printable
size which should resolve both.

Also clean up some variable declarations.
2023-06-24 12:37:51 +02:00
Knutwurst
4d5ba3899b Remove duplicate softEndstop setting. It's already set by the print timer. 2023-06-24 11:38:08 +02:00
Knutwurst
339125801e Fix typos 2023-06-20 15:07:17 +02:00
Knutwurst
614e54657d Cleanup touchscreen code a little 2023-06-17 19:29:21 +02:00
Knutwurst
524d6fbcdf Refactor A22 move X/Y/Z or extrude function. 2023-06-15 17:29:50 +02:00
Knutwurst
b940864e18 Implement 'M73' to set print job progress, overrides Knutwurst's built-in estimate 2023-06-14 22:18:43 +02:00
Knutwurst
71b3968100 Revert default ESP speed to 500k. 2023-06-14 21:37:00 +02:00
Knutwurst
fb335408dc Activate assist level button on 4MAX. This is a trial and error commit. 2023-06-14 17:16:01 +02:00
Knutwurst
b24edb9de7 Add 4MAX Pro code for servo endstop angle adjustment. 2023-06-14 17:00:45 +02:00
Knutwurst
9bdf4d658e Disable ESP. 2023-06-14 16:19:37 +02:00
Knutwurst
9afe777c26 Cleanup code and use clang-formatter to improve readabilty. 2023-06-14 15:11:17 +02:00
Knutwurst
1e27c22bdd Bump build date and version 2023-06-14 11:41:25 +02:00
Knutwurst
b646757a1b Implement 4MAX Pro 2.0 assisted level feature. 2023-06-14 11:04:00 +02:00
Knutwurst
4df951c501 Substiture KNUTWURST_TFT_LEVELING flag with KNUTWURST_CHIRON. 2023-06-14 10:35:01 +02:00
8 changed files with 2027 additions and 1981 deletions

View File

@@ -6,25 +6,25 @@ AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveAssignments:
Enabled: true
AcrossEmptyLines: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: true
PadOperators: true
AlignConsecutiveBitFields:
Enabled: true
AcrossEmptyLines: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: false
PadOperators: false
AlignConsecutiveDeclarations:
Enabled: true
AcrossEmptyLines: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: false
PadOperators: false
AlignConsecutiveMacros:
Enabled: true
AcrossEmptyLines: true
AcrossEmptyLines: false
AcrossComments: true
AlignCompound: false
PadOperators: false
@@ -62,16 +62,15 @@ BraceWrapping:
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
BeforeCatch: false
BeforeElse: false
BeforeCatch: true
BeforeElse: true
BeforeLambdaBody: false
BeforeWhile: false
IndentBraces: false
IndentBraces: true
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakAfterAttributes: Never
BreakAfterJavaFieldAnnotations: false
BreakArrays: true
BreakBeforeBinaryOperators: None
BreakBeforeConceptDeclarations: Always
@@ -115,17 +114,17 @@ IncludeCategories:
CaseSensitive: false
IncludeIsMainRegex: '(Test)?$'
IncludeIsMainSourceRegex: ''
IndentAccessModifiers: false
IndentCaseBlocks: false
IndentCaseLabels: false
IndentAccessModifiers: true
IndentCaseBlocks: true
IndentCaseLabels: true
IndentExternBlock: AfterExternBlock
IndentGotoLabels: true
IndentPPDirectives: None
IndentPPDirectives: BeforeHash
IndentRequiresClause: true
IndentWidth: 4
IndentWrappedFunctionNames: false
InsertBraces: false
InsertNewlineAtEOF: false
IndentWidth: 2
IndentWrappedFunctionNames: true
InsertBraces: true
InsertNewlineAtEOF: true
InsertTrailingCommas: None
IntegerLiteralSeparator:
Binary: 0
@@ -134,15 +133,13 @@ IntegerLiteralSeparator:
DecimalMinDigits: 0
Hex: 0
HexMinDigits: 0
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
LambdaBodyIndentation: Signature
LineEnding: DeriveLF
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
MaxEmptyLinesToKeep: 2
NamespaceIndentation: All
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCBreakBeforeNestedBlockParam: true

View File

@@ -28,9 +28,6 @@ Clearly describe the submitted changes with lots of details. Include images wher
<!-- Attach Configurations ZIP and any other files needed to test this PR. -->
### Configurations
<!-- Attach any Configuration.h, Configuration_adv.h, or platformio.ini files needed to compile/test your Pull Request. -->
### Related Issues

View File

@@ -38,14 +38,11 @@
#define CONFIGURATION_H_VERSION 02010201
#define ANYCUBIC_TOUCHSCREEN
#define KNUTWURST_SPECIAL_MENU
#define KNUTWURST_SPECIAL_MENU_WO_SD
// #define ANYCUBIC_TFT_DEBUG
// #define POWER_OUTAGE_TEST
#define LCD_SERIAL_PORT 3
#define EXT_LEVEL_HIGH 0.1
/*
* This feature is for debugging purpose only.
* It enabled more console output and should be
@@ -76,18 +73,6 @@
// #define KNUTWURST_MEGA_P_LASER
#endif
/*
* This enables the integrated leveling features
* in the anycubic touchscreen. It's currently only
* supported by the Anycubic Chiron and therefore it
* is automatically set if the chiron is enabled.
*
*/
#if ENABLED(KNUTWURST_CHIRON)
#define KNUTWURST_TFT_LEVELING
#endif
/*
* To ensure the correct endstop configuration,
* this has to be enabled to alter the motherboard
@@ -1652,7 +1637,7 @@
* Use G29 repeatedly, adjusting the Z height at each point with movement commands
* or (with LCD_BED_LEVELING) the LCD controller.
*/
#if NONE(KNUTWURST_BLTOUCH, KNUTWURST_TFT_LEVELING)
#if NONE(KNUTWURST_BLTOUCH, KNUTWURST_CHIRON)
#define PROBE_MANUALLY
#endif
@@ -1671,7 +1656,7 @@
/**
* Z Servo Probe, such as an endstop switch on a rotating arm.
*/
#if ENABLED(KNUTWURST_TFT_LEVELING)
#if ENABLED(KNUTWURST_CHIRON)
#define Z_PROBE_SERVO_NR 0 // Defaults to SERVO 0 connector.
#define Z_SERVO_ANGLES { 70, 0 } // Z Servo Deploy and Stow angles
#endif
@@ -1838,11 +1823,11 @@
// #define NOZZLE_TO_PROBE_OFFSET { 29, -15, 0 } //X-Carriage
#endif
#if ENABLED(KNUTWURST_TFT_LEVELING)
#if ENABLED(KNUTWURST_CHIRON)
#define NOZZLE_TO_PROBE_OFFSET { 0, 0, -16.8 }
#endif
#if NONE(KNUTWURST_BLTOUCH, KNUTWURST_TFT_LEVELING)
#if NONE(KNUTWURST_BLTOUCH, KNUTWURST_CHIRON)
#define NOZZLE_TO_PROBE_OFFSET { 10, 10, 0 }
#endif
@@ -2470,7 +2455,7 @@
* leveling in steps so you can manually adjust the Z height at each grid-point.
* With an LCD controller the process is guided step-by-step.
*/
#if EITHER(KNUTWURST_BLTOUCH, KNUTWURST_TFT_LEVELING)
#if EITHER(KNUTWURST_BLTOUCH, KNUTWURST_CHIRON)
// #define AUTO_BED_LEVELING_3POINT
// #define AUTO_BED_LEVELING_LINEAR
#define AUTO_BED_LEVELING_BILINEAR
@@ -2478,7 +2463,7 @@
// #define MESH_BED_LEVELING
#endif
#if NONE(KNUTWURST_BLTOUCH, KNUTWURST_TFT_LEVELING)
#if NONE(KNUTWURST_BLTOUCH, KNUTWURST_CHIRON)
// #define AUTO_BED_LEVELING_3POINT
// #define AUTO_BED_LEVELING_LINEAR
// #define AUTO_BED_LEVELING_BILINEAR
@@ -3985,7 +3970,7 @@
* Set this manually if there are extra servos needing manual control.
* Set to 0 to turn off servo support.
*/
#if ENABLED(KNUTWURST_TFT_LEVELING)
#if ENABLED(KNUTWURST_CHIRON)
#define NUM_SERVOS 1 // Note: Servo index starts with 0 for M280-M282 commands
#endif

View File

@@ -1479,12 +1479,12 @@
#endif // HAS_DISPLAY || DWIN_LCD_PROUI
// Add 'M73' to set print job progress, overrides Marlin's built-in estimate
// #define SET_PROGRESS_MANUALLY
#define SET_PROGRESS_MANUALLY
#if ENABLED(SET_PROGRESS_MANUALLY)
#define SET_PROGRESS_PERCENT // Add 'P' parameter to set percentage done
#define SET_REMAINING_TIME // Add 'R' parameter to set remaining time
// #define SET_INTERACTION_TIME // Add 'C' parameter to set time until next filament change or other user interaction
// #define M73_REPORT // Report M73 values to host
#define SET_INTERACTION_TIME // Add 'C' parameter to set time until next filament change or other user interaction
#define M73_REPORT // Report M73 values to host
#if BOTH(M73_REPORT, SDSUPPORT)
#define M73_REPORT_SD_ONLY // Report only when printing from SD
#endif

View File

@@ -41,10 +41,10 @@
* here we define this default string as the date where the latest release
* version was tagged.
*/
#define CUSTOM_BUILD_VERSION "1.5.1"
#define CUSTOM_BUILD_VERSION "1.5.2"
#ifndef STRING_DISTRIBUTION_DATE
#define STRING_DISTRIBUTION_DATE "2023-06-13"
#define STRING_DISTRIBUTION_DATE "2023-07-06"
#endif
/**

File diff suppressed because it is too large Load Diff

View File

@@ -24,13 +24,6 @@
#include "../../../inc/MarlinConfigPre.h"
#include "../../../module/probe.h"
char *itostr2(const uint8_t &x);
#ifndef ULTRA_LCD
char *itostr3(const int);
char *ftostr32(const float &);
#endif
#define TFTBUFSIZE 4
#define TFT_MAX_CMD_SIZE 96
#define MSG_MY_VERSION CUSTOM_BUILD_VERSION
@@ -213,7 +206,7 @@ void OnPrintTimerStopped();
void Command(const char* const command);
#endif
#if ENABLED(KNUTWURST_TFT_LEVELING)
#if ENABLED(KNUTWURST_CHIRON)
void LevelingDone();
#endif
@@ -226,11 +219,10 @@ char serial3_char;
int serial3_count = 0;
char* TFTstrchr_pointer;
char FlagResumFromOutage = 0;
uint8_t tmp_extruder = 0;
uint16_t HeaterCheckCount = 0;
int currentFlowRate = 0;
bool PrintdoneAndPowerOFF = true;
bool powerOFFflag = 0;
bool powerOFFflag = false;
xy_uint8_t selectedmeshpoint;
float live_Zoffset;
@@ -245,8 +237,7 @@ static AnycubicMediaPauseState mediaPauseState;
float last_bed_temp;
float last_hotend_temp;
long lastSDposition;
}
OutageData;
} OutageData;
#endif
int CodeValueInt();
@@ -258,7 +249,6 @@ void ResumePrint();
void StopPrint();
void GetCommandFromTFT();
void CheckHeaterError();
void FilamentChangePause();
void HandleSpecialMenu();
void RenderCurrentFileList();
void RenderSpecialMenu(uint16_t);

View File

@@ -94,7 +94,7 @@ namespace ExtUI {
void onLevelingStart() {}
void onLevelingDone() {
#if ENABLED(KNUTWURST_TFT_LEVELING)
#if ENABLED(KNUTWURST_CHIRON)
AnycubicTouchscreen.LevelingDone();
#endif
}