Alex Voinea
be3465cf18
optimize lambda expression capture
...
flash: -10
2023-08-17 07:52:55 +02:00
Alex Voinea
2d0b96fe6a
Bed correction code optimization
...
flash: -44
2023-08-17 07:52:55 +02:00
Alex Voinea
5b8c65e342
Minor magnet elimination optimization
...
flash: -4B
2023-08-17 07:52:55 +02:00
Alex Voinea
67945579de
G80 minor optimization
2023-08-17 07:52:55 +02:00
Alex Voinea
a5c20a1c6e
Do not plan a Z move if no move is actually performed
2023-08-17 07:52:55 +02:00
Alex Voinea
de98551691
Extract hardcoded value
2023-08-17 07:52:55 +02:00
Alex Voinea
40db9c9258
Fix eeprom mesh offset
2023-08-17 07:52:55 +02:00
Alex Voinea
a7d3dd720b
Fix eeprom mesh interpolation
2023-08-17 07:52:55 +02:00
Alex Voinea
36d8de0727
G80 general fixes
...
Use interpolated eeprom mesh for skewed Z detection
Use the interpolated eeprom mesh for raising Z for the next point
Fix LCD countdown during MBL
2023-08-17 07:52:55 +02:00
Alex Voinea
b234560b22
MBL print function optimization
2023-08-17 07:52:55 +02:00
Alex Voinea
f94bc72235
Optimize G80 bed correction argument parsing
2023-08-17 07:52:55 +02:00
Alex Voinea
90c21425c6
Optimize is_bed_z_jitter_data_valid()
2023-08-17 07:52:55 +02:00
Alex Voinea
6c97907507
A bit more cleanup
2023-08-17 07:52:55 +02:00
Alex Voinea
6af5f5e2a2
Some code cleanup around homing_feedrate
2023-08-17 07:52:55 +02:00
Alex Voinea
83879fd10c
Cleanup magnet compensation code
2023-08-17 07:52:55 +02:00
Alex Voinea
46710c4b4e
G80 code cleanup
2023-08-17 07:52:55 +02:00
Alex Voinea
07b9447ee1
Fix correction nMeasPoints
2023-08-17 07:51:15 +02:00
Alex Voinea
fbfc6bf4a5
MBL remove MBL_BILINEAR
2023-08-17 07:51:15 +02:00
Alex Voinea
8edfff39e4
MBL code cleanup
2023-08-17 07:51:15 +02:00
Alex Voinea
a4ef72b1fc
Use mesh from eeprom during print area MBL
2023-08-17 07:51:15 +02:00
Alex Voinea
7b9f2086f4
MBL print area initial implementation
2023-08-17 07:51:15 +02:00
Alex Voinea
11e1806e0c
Gcode documentation
2023-08-17 07:51:15 +02:00
Guðni Már Gilbert
c4f48a6606
MMU: Disable FINDA runout during Homing and MBL
...
If for some reason a user added a extrusion move in the firmware. Prevent FINDA runout
from triggering.
Change in memory:
Flash: +16 bytes
SRAM: 0 bytes
2023-08-17 07:43:59 +02:00
Guðni Már Gilbert
61ec6b8ae7
G80: Don't unretract unless retracting first
...
temp_compensation_start() is only called when
PINDA_THERMISTOR is not defined.
Additionally make sure the retraction or unretraction cannot happen
twice in case MBL fails.
For MK3S users with MMU this extrusion move could
cause a FINDA runout event.
Change in memory:
Flash: -130 bytes
SRAM: 0 bytes
2023-08-17 07:43:59 +02:00
dawidpieper
14306e59c8
Try immediate EEPROM writes for flash size optimization
2023-08-16 20:36:24 +02:00
dawidpieper
1dada5ba81
Revert optimizations of bIsActive
2023-08-16 20:18:16 +02:00
dawidpieper
91cb01b12f
Code optimization
2023-08-16 20:08:53 +02:00
dawidpieper
b2f6b77cf3
Add separators between blocks
2023-08-16 19:46:57 +02:00
dawidpieper
58014156a0
Fix code formatting
2023-08-16 19:18:33 +02:00
Guðni Már Gilbert
0e469c054f
Fix disappearing menu items when Filament Action completes
...
An example is when Unloading filament with MMU.
After the unload completes successfully, some menu items disappeared.
Because mFilamentBack() was not called
Change in memory:
Flash: -56 bytes
SRAM: 0 bytes
2023-08-16 08:22:03 +02:00
Guðni Már Gilbert
1bf33bd1aa
Fix a bug where Load filament menu disappears
...
Kudos to @3d-gussner for finding the issue
Steps to reproduce:
1. reset printer
2. select Load filament
3. go back to main
4. LCD menu is very limited
5. To get all menus back select 6. Preheat
7. back to main
This commit is my proposed fix.
When eFilamentAction is equal to
FilamentAction::Load we must reset it to FilamentAction::None
when the Back button in Load Filament is selected
Change in memory:
Flash: -26 bytes
SRAM: 0 bytes
2023-08-16 08:22:03 +02:00
dawidpieper
11d8c157f6
M850 add possibility to set sheet as active
2023-08-15 22:19:55 +02:00
Guðni Már Gilbert
3766aadd99
PFW-1530 rename isErrorScreenSleeping to TuneMenuEntered
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
92b3a2443e
PFW-1530 Remove typedef keyword
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
03ed675732
PFW-1530 cleanup: remove redundant uint8_t cast
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
5d9ccc59b7
PFW-1530 fixup
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
f0a48b11f7
PFW-1530 Refactor the menu to be non-blocking
...
The UI works much smoother now
Saves ~60 bytes of flash
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
efd85110a3
PFW-1530 minor optimisation
...
Don't inline WriteRegister
Change in memory:
Flash: -12 bytes
SRAM: 0 bytes
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
1cda696e14
PFW-1530 Add Tune to Selector screen and more
...
- Rename "Idler" to "Sensitivity"
- Implement ReadRegisterInner() as a way to read register in blocking contexts such as manage_response()
This allows us to show the current EEPROM value on the printer's LCD
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
9e4fd08031
mmu2: cleanup: use Register enum
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
d0f18b6fbc
PFW-1530 Minor optimisation
...
Change in memory:
Flash: -8 bytes
SRAM: 0 bytes
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
5f60eaff85
PFW-1530 Initial prototype
...
Add a 'Tune' option to HOMING_IDLER_FAILED error
This will open a menu which allows
the user to change the stallguard threshold
from the MMU error screen
Change in memory:
Flash: +334 bytes
SRAM: +1 byte
2023-08-14 09:34:55 +02:00
Guðni Már Gilbert
d545469e32
Fix and optimise VERBOSE_CHECK_HIT_ENDSTOPS
2023-08-13 13:44:40 +00:00
3d-gussner
c708456184
Merge pull request #4161 from gudnimg/simplify-tcodes-code
...
MMU: Simplify `T?` processing
2023-08-11 14:31:57 +02:00
D.R.racer
d2991ce1e0
Increase required MMU FW version to 3.0.1
2023-08-11 11:09:53 +02:00
Alex Voinea
ef63b57dfd
Remove unimplemented M407 from list of gcodes
2023-08-11 09:02:11 +02:00
3d-gussner
500a6558a5
Rebase, fix and update doxygen
2023-08-11 09:02:11 +02:00
Michael Greene
f449b06bb2
reprocess patch so I don't have 1200 lines of whitespace changes to review
2023-08-11 09:02:11 +02:00
VintagePC
ea5bcc5eea
Implement #2089
2023-08-05 12:19:51 -04:00
Guðni Már Gilbert
503c01aa57
tmc2130: write chopper config and powerdown setting first
...
I noticed this is how the order is in 3.13.0 and before.
I want to keep it exactly the same.
This somehow saves 2 bytes of flash. Probably compiler magic.
Change in memory:
Flash: -2 bytes
SRAM: 0 bytes
2023-08-05 10:41:21 +02:00
Guðni Már Gilbert
02332018ec
tmc2130: Fix bug with vSense bit and current values
...
If vSense changes at runtime due to Run current
being changed. Then we must always shift the Hold current
correctly. Whether the vSense is changing 1 -> 0 or 0 ->1
Change in memory (with TMC2130_SERVICE_CODES_M910_M918):
Flash: +76 bytes
SRAM: 0 bytes
2023-08-05 10:41:21 +02:00
gudnimg
a1a3194985
tmc2130: Fix wrong values report by M913 when Hold > Run
...
The firmware will ensure that the Hold current can never
exceed the Run current. In this scenario we must update
the global current array so that M913 reflects the register settings.
Added a echo to serial when this truncation happens
Change in memory:
Flash: +54 bytes
SRAM: 0 bytes
2023-08-05 10:41:21 +02:00
Guðni Már Gilbert
ec921eb53b
MMU: Add enum class for register map
...
No change in memory
2023-08-05 10:36:00 +02:00
Guðni Már Gilbert
95d8711469
PFW-1531 Fix #4300
...
No change in memory
2023-08-04 17:02:03 +00:00
3d-gussner
b1da06859c
Merge pull request #3494 from wavexx/lcd_temperature_jumping
...
Jump to PLA temps in LCD temperature settings when starting from zero
2023-08-02 14:21:53 +02:00
3d-gussner
491d4d2a20
Merge pull request #4080 from gudnimg/PFW-1504-v2
...
PFW-1504 fix conflicting UI issues
2023-08-02 12:59:27 +02:00
3d-gussner
2ab9cbcd83
Merge pull request #923 from cwei/patch-1
...
Fix upper limit for x
2023-08-02 12:05:38 +02:00
Yuri D'Elia
719db8f537
Optimize menu editing by reducing template duplication
...
Avoid instantiating multiple copies of menu_item_edit_P/_menu_edit_P:
perform type switching at runtime.
2023-08-01 12:41:38 +02:00
Yuri D'Elia
baacc0ec53
TM: Fix TM calibration from the Calibration menu
...
After dece5d268f , running the thermal
model itself switches the printer to "active", preventing a calibration
run from the LCD to start.
Explicitly allow LcdCommands::ThermalModel in this case.
2023-08-01 11:54:10 +02:00
Yuri D'Elia
92202249d9
Make temperature jumping configurable in the variant file
...
Use this new feature in the Settings -> Temperature menus.
2023-07-31 16:04:33 +02:00
Yuri D'Elia
5ad21550c7
Jump to PLA temps in LCD settings when starting from zero
...
Allow the LCD menu update function to preset an initial value during the
first encoder increase from the minimal (usually zero) value.
This is useful to jump to a more sensible initial value when turning on
an heater which is currently disabled. The user is still allowed to
decrease the value after the jump, so there's no functional restriction.
2023-07-31 16:04:16 +02:00
Guðni Már Gilbert
a96ee9da62
m600: power panic: unset isPartialBackupAvailable on M600 exit
...
If no power panic occurred during M600 we should
clear isPartialBackupAvailable to let the power panic
code know to not use the partial backup. We want the
partial backup ONLY when the extruder is parked after a print is saved.
Change in memory:
Flash: +4 bytes
SRAM: 0 bytes
2023-07-27 16:55:08 +00:00
Guðni Már Gilbert
7e025894d1
Echo the result onto serial
...
Example:
MMU2:1111111111111110011
1 means filament present (solid block)
0 means otherwise (dash)
Change in memory:
Flash: +94 bytes
SRAM: 0 bytes
2023-07-27 16:44:34 +00:00
Guðni Már Gilbert
20c6a448fa
PFW-1504 Don't clear Status line on Deinit
...
Status line code should decide what to render next
Change in memory:
Flash: -12 bytes
SRAM: 0 bytes
2023-07-27 16:44:34 +00:00
Guðni Már Gilbert
940e626f3a
Previously we called cleared the LCD, no need to change that
...
Change in memory:
Flash: -6 bytes
SRAM: 0 bytes
2023-07-27 16:44:34 +00:00
Guðni Már Gilbert
28f6cebfd2
PFW-1504 Cleanup
...
Only set cursor with lcd_status_message_idx where the variable
is used.
No change in memory
2023-07-27 16:44:34 +00:00
Guðni Már Gilbert
63775dfabb
PFW-1504 fix conflicting UI issues
...
Proposal to fix some of the issues with the initial implementation
it is safer to use the status line code to print the message so
there aren't any conflicts in the LCD cursor position.
Allow inserting a byte into any position in the LCD status message
Also, add a variable to control from which index in the array
should the message start printing. This is very useful for progress
bars and messages which continually update. I think we can save some
memory by applying this to Mesh Bed Leveling later.
Change in memory:
Flash: +106 bytes
SRAM: +1 byte
2023-07-27 16:44:34 +00:00
3d-gussner
320997a1f5
Merge pull request #3859 from wavexx/simplify_variant_names
...
Simplify variant names
2023-07-27 15:44:58 +02:00
vintagepc
a2eafc587a
Merge branch 'MK3' into 2477-redux
2023-07-26 12:34:38 -04:00
3d-gussner
8d66a2864f
Simplify REVO variants
2023-07-26 16:46:17 +02:00
Yuri D'Elia
cb8f68192a
build: Simplify variant names
...
- Remove nozzle size and heater type
- Also remove board type from MK3/MK3S
2023-07-26 16:40:26 +02:00
3d-gussner
ce141a2fa1
Merge pull request #3564 from wavexx/fil_loading_state
...
Filament loading state fixes
2023-07-26 16:38:29 +02:00
3d-gussner
897d05d268
Fix @wavexx complains
2023-07-26 09:33:16 +02:00
3d-gussner
6feab85252
Rebase update REVO and solve @wavexx comments
2023-07-25 17:24:02 +02:00
3d-gussner
8ae0e1952e
Rename `temp_model.h` to `thermal_model.h`
...
`/temp_model` to `/thermal_model`
`Temperature_model` to `Thermal_model`
minor format in eeprom.h
2023-07-25 17:13:07 +02:00
3d-gussner
940b18e0b2
Format `eeprom.h` doxygen documentation
2023-07-25 17:13:07 +02:00
3d-gussner
a6b209d36d
Rename `Temperature Model` to `Thermal Model`
...
`Temperature model` to `Thermal model`
`temperature model` to `thermal model`
2023-07-25 17:13:07 +02:00
3d-gussner
78ed427166
Rename `TempModel` to `ThermalModel`
2023-07-25 17:13:07 +02:00
3d-gussner
600a7a0316
Rename `Temp Model` to `Thermal Model`
2023-07-25 17:13:07 +02:00
3d-gussner
44ae8033eb
Rename upper case `TEMP_MODEL` to `THERMAL_MODEL`
2023-07-25 17:13:07 +02:00
3d-gussner
dac07d11ba
Rename lower case `temp_model` to `thermal_model`
2023-07-25 17:13:07 +02:00
Guðni Már Gilbert
780f2db3d1
fixup
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
c647e4cfa4
fix build
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
f40defd2a9
Rename minsegmenttime --> min_segment_time_us
...
Also fixed wrong unit in Configuration prinout (M500)
should be us and not ms
Also used %lu format for uint32_t instead of %.2f
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
842dcc6560
Remove MAX_E_STEPS_PER_UNIT and MIN_E_STEPS_PER_UNIT
...
These constants are not used anywhere so there is no need to rename them
I propose they be removed as cleanup
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
ec896df62a
Remove commented DEFAULT_AXIS_STEPS_PER_UNIT
...
They serve no function at this point
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
6c95d340c1
Remove dead code axis_travel_steps_per_sqr_second
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
a8c75090b2
Change unsigned long to uint32_t
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
8689a28776
Rename max_acceleration_units_per_sq_second to max_acceleration_mm_per_s2
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
21faa52aab
Rename axis_steps_per_unit to axis_steps_per_mm
2023-07-25 17:10:44 +02:00
Guðni Már Gilbert
ff1cd2bfb2
dcodes: fix build when DEBUG_DCODES is enabled
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
5b8813bf18
tmc2130: fix octoprint error
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
fa6aae60db
optimisation: use SERIAL_PROTOCOLLN
...
Change in memory:
Flash: -12 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
9d15a4e63b
optimisation: reduce code size in M916, M917, M918
...
Change in memory:
Flash: -148 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
c090868fa2
optimisation: reduce code size in M907
...
Change in memory:
Flash: -4 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
53c8bfa928
cleanup: remove unused variable
...
No change in memory
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
7029af05fa
optimisation: reduce code size in pid_extruder()
...
Author: leptun
Change in memory:
Flash: -14 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
6623d45af9
optimisation: Tighter LCD timing
...
Author: leptun
Change in memory:
Flash: -14 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Guðni Már Gilbert
5288d615f8
optimisation: lcd avoid streams
...
Author: leptun
Change in memory:
Flash: -124 bytes
SRAM: 0 bytes
2023-07-25 15:02:49 +00:00
Yuri D'Elia
3485c20464
Improve FilamentAction comments
2023-07-25 14:30:20 +00:00