3d-gussner
fe9a8cf8ac
Fix PF-build.sh with new cmake
...
Same as MK3_3.13.2 branch
2023-10-17 15:36:54 +02:00
gudnimg
20a434dbac
PFW-1542 Reset status line message on EFCE_OK
...
If the error is really resolved, I'd prefer to see
"Prusa i3 MK3S OK" instead of "Err:HOTEND FAN ERROR"
2023-10-15 12:26:44 +00:00
gudnimg
466e562360
PFW-1542 Don't allow starting SD print if there is a fan error
...
Apply same conditions as on "Resume print" feature.
Starting a SD print should not be possible if there is an active hardware error
2023-10-15 12:17:36 +00:00
3d-gussner
63b628d722
Merge pull request #4396 from 3d-gussner/MK3_PFW-1538_M420
...
PFW-1538: Add M420
2023-10-13 14:27:34 +02:00
Guðni Már Gilbert
415c0c79d1
Fix FW_COMMIT_HASH compiler warning
...
On my end, the default length for the abbreviated commit hash is 9 characters.
This won't fit into uint32_t (4 bytes).
Instead change FW_COMMIT_HASH into a string
and create preprocessor symbol for the string length
such that it's known at compile time.
If the string should be longer or shorter
then only FW_COMMIT_HASH_LENGTH needs to be configured on the CMake side
2023-10-07 21:01:28 +00:00
3d-gussner
23503624d0
Merge pull request #4407 from gudnimg/minor-opt-temp-gudni
...
optimisation: make `alert_automaton_mintemp` constructor `constexpr`
2023-10-06 09:05:24 +02:00
3d-gussner
2027a54873
Merge pull request #4420 from gudnimg/PFW-1543
...
PFW-1543 Save print type in EEPROM
2023-10-06 09:04:30 +02:00
3d-gussner
9aca81dc7c
Merge pull request #4381 from vintagepc/misc-cmake-fixes
...
Refine CMake version handling based on tags
2023-10-05 16:00:55 +02:00
Guðni Már Gilbert
b89c62bd50
PFW-1543 Replace ffh 255 with ^
2023-10-04 20:57:05 +00:00
3d-gussner
8b9b63c35b
Merge pull request #4418 from gudnimg/PFW-1542-v2
...
PFW-1542 Handle fan error sooner when waiting for heating to complete
2023-10-03 10:16:49 +02:00
Alex Voinea
9606c4f00b
Add font unpacking documentation
2023-10-03 08:19:48 +02:00
Alex Voinea
d53ba0eba2
Fix wrong character sent when potentially unused slot is replaced
2023-10-03 08:19:48 +02:00
Alex Voinea
7e88e49b4e
Fix tilde in message
2023-10-03 08:19:48 +02:00
Alex Voinea
32cee8b529
Move custom character type to lcd.cpp
2023-10-03 08:19:48 +02:00
Alex Voinea
c2c01a9a86
Use beta symbol as fallback of `ß`
2023-10-03 08:19:48 +02:00
Alex Voinea
3e15a24be7
Fix sheet rename resetting characters to blank
2023-10-03 08:19:48 +02:00
Alex Voinea
8a39f53e26
Prevent out of bounds custom character font data
2023-10-03 08:19:48 +02:00
Alex Voinea
9dbbb12a13
Fix frame start for non-menu screens
2023-10-03 08:19:48 +02:00
Alex Voinea
8e25e1b164
Allow all diacritics in the sheet name
2023-10-03 08:19:48 +02:00
Alex Voinea
d5074129f5
Fix MMU error message character
2023-10-03 08:19:48 +02:00
Alex Voinea
6703640c56
Optimize `lcd_print_custom()`
2023-10-03 08:19:48 +02:00
Alex Voinea
fcaa9c8de6
Update `ăĂñ`
2023-10-03 08:19:48 +02:00
Alex Voinea
9ee71b2942
Update `ø`
2023-10-03 08:19:48 +02:00
Alex Voinea
dd32f7be3c
bootapp cleanup
2023-10-03 08:19:48 +02:00
Alex Voinea
5466bfb500
Cleanup uartout declaration
2023-10-03 08:19:48 +02:00
Alex Voinea
90dbaa8c51
Update `đûůű`
2023-10-03 08:19:48 +02:00
Alex Voinea
927b27615e
Update `ď`
2023-10-03 08:19:48 +02:00
Alex Voinea
3817893199
Implement the rest of the diacritics
2023-10-03 08:19:48 +02:00
Alex Voinea
5ea2b881d5
Yet another workaround for the language update
2023-10-03 08:19:48 +02:00
Alex Voinea
3305227bbc
Implement all a-based diacritics
2023-10-03 08:19:48 +02:00
Alex Voinea
6707570c6c
Update diacritic alignment
2023-10-03 08:19:48 +02:00
Alex Voinea
c0875f37f2
Implement 'á'
2023-10-03 08:19:48 +02:00
Alex Voinea
a267d80fe2
Fix legacy build
2023-10-03 08:19:48 +02:00
Alex Voinea
10e6087d6b
Update language scripts to use the font
2023-10-03 08:19:48 +02:00
Alex Voinea
09c85796a6
No need to mask the CGRAM data before sending
2023-10-03 08:19:48 +02:00
Alex Voinea
245a2852ac
Font table compression
2023-10-03 08:19:48 +02:00
Alex Voinea
1c637f8082
Fix " 🔃 Refresh" translation
2023-10-03 08:19:48 +02:00
Alex Voinea
1c260f94a0
Expand list of custom characters
2023-10-03 08:19:48 +02:00
Alex Voinea
6d5e645c1f
Regen font table and include ID in comment
2023-10-03 08:19:48 +02:00
Alex Voinea
c1ec8d97e6
Remove TR font
2023-10-03 08:19:48 +02:00
Alex Voinea
81103602f0
Change μ to µ
...
stupid unicode...
2023-10-03 08:19:48 +02:00
Alex Voinea
6367172177
Change ↡ to
2023-10-03 08:19:48 +02:00
Alex Voinea
4957544fcf
Change 🗘 to 🔃
2023-10-03 08:19:48 +02:00
Alex Voinea
c514774a54
Generate the font from Prusa.lcd
2023-10-03 08:19:48 +02:00
Alex Voinea
8e18c83d51
Update debug messages
2023-10-03 08:19:48 +02:00
Alex Voinea
4736a1624f
First working implementation
...
Fix cherry-pick conflict
2023-10-03 08:19:48 +02:00
Alex Voinea
e9f74b2678
Remove unnecessary lcd_home() calls
2023-10-03 08:19:48 +02:00
Alex Voinea
580b27e394
Use lcd_home() wherever possible
...
Fix cherry-pick conflict
2023-10-03 08:19:48 +02:00
Alex Voinea
c7f9a46c86
Cleanup around invalidating the custom characters
2023-10-03 08:19:48 +02:00
Alex Voinea
60494b20e8
lcd_print_custom(): limit searching to lcd_custom_index
2023-10-03 08:19:48 +02:00
Alex Voinea
7e0ab44d09
Refactor the lcd_print_custom() method
2023-10-03 08:19:48 +02:00
Alex Voinea
90222747f2
lcd_set_cursor_column() also updates lcd_ddram_address
2023-10-03 08:19:48 +02:00
3d-gussner
f392fae996
Fix cherry-pick conflict 2
2023-10-03 08:19:48 +02:00
Alex Voinea
100a8e3b33
Dynamic characters initial
...
Fix more hardcoded characters
Finally optimize the lcd printf with custom characters
FontGen.py script
Add arguments and action
Fix build
Fix conflicts
2023-10-03 08:19:48 +02:00
gudnimg
3eaca29b0b
PFW-1543 Move printing types into enum
...
Also add power panic namespace
2023-10-01 12:57:25 +00:00
gudnimg
fcd61a378d
power panic: save print type in EEPROM
...
The printer should know whether it is recovering a SD print
or a USB print
PFW-1543
2023-10-01 12:44:49 +00:00
gudnimg
0139cf6dde
MMU: Fix printing uint8_t value onto serial
...
uint8_t values don't print correctly. Cast to 2-byte integer is required.
2023-09-30 14:06:38 +00:00
gudnimg
e621d3445e
PFW-1542 Handle fan error sooner when waiting for heating to complete
...
While waiting for the nozzle to reach a certain temperature, a fan error
should disable the hotend heater. If printing, it will simply pause the print.
Previously the printer would wait for the nozzle to heat up before pausing the print
and turning off the hotend heater.
We rely on LcdCommands::LongPause and must return to the top level loop to process it.
Waiting in the while loop e.g. in M190 does not make sense.
2023-09-30 14:01:09 +00:00
gudnimg
ae494b04de
optimisation: make constructor constexpr
...
Minor optimisation I found. It doesn't save much but this change
should be harmless :)
Change in memory:
Flash: -30 bytes
SRAM: 0 bytes
2023-09-24 11:41:18 +00:00
VintagePC
52de576e0a
change where FW_VERSION_FULL is defined so it's less messy
2023-09-23 13:10:04 -04:00
gudnimg
016db6a6e8
Hide menus more consistently when the printer is busy
...
lcd_calibration_menu: Remove redundant if (!isPrintPaused). The menu
is never called unless this condition is true.
eeprom_switch_to_next_sheet: Don't show this menu if the printer
is busy doing work!
Do not allow these menus to run while a print is paused or
when we're recovering a print:
- Preload to MMU
- Load to Nozzle
- Unload filament
- Eject from MMU
- Cut filament
- Autoload filament
- Settings
- Calibration
2023-09-23 15:42:03 +00:00
gudnimg
06d34b4398
Fix an issue where print can't be stopped under specific circumstances
...
There is a bug where if the printer is recovering a print, it run a
blocking loop to restore the extruder and bed temperatures.
But if a Fan error is triggered in this loop, then the user can't
abort the print via LCD.
If the fan error resolves on its own the 'Resume print' menu will
appear in a few seconds. But if not, then the user can't resume the print
(which is normal). But with the bug above the user can't abort the print either!
The problem is essentially isPrintPaused variable is cleared too early.
We should wait until the print is completely restored first.
Steps to reproduce:
1. Start a print
2. Pause the print
3. Wait for extruder temperature to fall at lest 180°C
4. Click 'Resume' print
5. While heating, stop the hotend fan and wait for a few seconds until an error is raised
6. Observe issue => 'Stop print' menu item is gone!
PFW-1542
2023-09-23 14:18:52 +00:00
VintagePC
949539dfc9
Merge remote-tracking branch 'upstream/MK3' into vintagepc/more-cmake-fixes
2023-09-22 16:42:06 -04:00
3d-gussner
f8c64de505
Merge pull request #4390 from sarusani/mbl_mag_comp
...
MBL: Add magnet compensation parameter
2023-09-22 14:57:09 +02:00
Guðni Már Gilbert
e323490659
optimisation: Remove unused Z offset
...
Frees up some SRAM
Change in memory:
Flash: 0 bytes
SRAM: -4 bytes
2023-09-19 23:37:38 +00:00
3d-gussner
1996f977e1
Merge branch 'MK3' into mbl_mag_comp
2023-09-18 15:55:42 +02:00
3d-gussner
8bd71b7bf0
Merge pull request #4391 from sarusani/mbl_default_to_eeprom
...
MBL: Default to EEPROM values
2023-09-18 15:52:38 +02:00
3d-gussner
039202f34b
Fix typo
2023-09-18 15:48:36 +02:00
3d-gussner
0877585bd1
Add M420
...
Same as G81
2023-09-18 15:45:13 +02:00
D.R.racer
0f1cb4f407
Fixup from review
2023-09-18 10:51:32 +02:00
gudnimg
4134bf4f40
8-bit proposed changes
...
The status line code is not nice, but we need to work around it
so the status line rendering works correctly
This commit mostly reapplies the code
from 3.13.2
Also fixes compiler warnings
2023-09-18 10:51:32 +02:00
D.R.racer
ea01012026
Unify MMU operations' workflow
2023-09-18 10:51:32 +02:00
D.R.racer
a02ff0651c
Return try-load reporting to serial
2023-09-18 10:51:32 +02:00
D.R.racer
59e49c80f9
Sync MK3<->MK4 MMU2 Tune, Buttons, PowerPanic hooks refactoring
2023-09-18 10:51:32 +02:00
D.R.racer
9b48ab729a
Sync MK3<->MK4 MMU2 TryLoadUnloadReporter
2023-09-18 10:51:32 +02:00
D.R.racer
7db7250773
Sync MK3<->MK4 MMU2 mmu2_mk4.cpp formatting
2023-09-18 10:51:32 +02:00
D.R.racer
be5523187b
Sync MK3<->MK4 MMU2 mmu2_mk4.h
2023-09-18 10:51:32 +02:00
D.R.racer
075858c9fa
Sync MK3<->MK4 MMU2 reporting
2023-09-18 10:51:32 +02:00
D.R.racer
5235fe2480
Sync MK3<->MK4 MMU2 marlin macros
2023-09-18 10:51:32 +02:00
D.R.racer
b4b0bba11c
Sync MK3<->MK4 MMU2 marlin interface
2023-09-18 10:51:32 +02:00
D.R.racer
eb7a73e748
Sync MK3<->MK4 MMU2 log
2023-09-18 10:51:32 +02:00
D.R.racer
fd9f4ffb9e
Sync MK3<->MK4 MMU2 progress converter
2023-09-18 10:51:32 +02:00
D.R.racer
ec4740fe53
Clean-up ProgressCodes and ErrorCodes parameters throughout the code
2023-09-18 10:51:32 +02:00
D.R.racer
717281cd87
Sync MK3<->MK4 MMU2 crc
2023-09-18 10:51:32 +02:00
D.R.racer
f235976f26
Sync MK3<->MK4 MMU2 protocol logic
2023-09-18 10:51:32 +02:00
sarusani
84d353793d
Fix typos
2023-09-16 12:38:14 +02:00
sarusani
e4a10e5fab
Move code_seen back into if statement
...
Same memory usage, but prettier to look at. :)
2023-09-15 14:11:27 +02:00
sarusani
56a79f88ef
Optimise memory usage
2023-09-15 14:11:27 +02:00
sarusani
2951bc8af0
Default to eeprom values
...
Use eeprom values if provided parameters are out of bounds.
2023-09-15 14:11:27 +02:00
3d-gussner
9e794a47a4
Merge pull request #4386 from 3d-gussner/MK3_mbl_print_area_translations
...
🚧 Add new MBL message for #4183 and translation
2023-09-15 09:00:38 +02:00
sarusani
21c57a1222
Add parameter for magnet compensation
...
allow to enable/disable magnet compensation when 7x7 is in use.
2023-09-14 21:02:56 +02:00
sarusani
2863c9bc01
Cleanup: whitespace in nProbeRetryCount var
2023-09-14 09:43:26 +02:00
3d-gussner
5f605012eb
Merge pull request #4388 from prusa3d/vintagepc/tmc-mode-query
...
Add Q parameter to M91[4/5]
2023-09-14 09:13:55 +02:00
VintagePC
70d83fe4ee
Add Q parameter to query current mode.
2023-09-13 16:52:11 -04:00
sarusani
a9c8bb7dbf
Code cleanup: rename params
2023-09-13 18:31:45 +02:00
sarusani
d3bb6e5ca5
Rename MBL repeat param
2023-09-13 17:37:39 +02:00
3d-gussner
ca27841d67
Add new MBL message for #4183 and translate these messages
2023-09-13 11:14:16 +02:00
sarusani
dc129e0934
Remove obsolete mesh definitions
...
Clean up mesh definitions that where made obsolete by #4183
2023-09-13 10:49:52 +02:00
3d-gussner
2e70697fa7
Merge pull request #4183 from leptun/mbl_print_area
...
MBL print area
2023-09-13 10:28:08 +02:00
3d-gussner
0aa380b931
Merge pull request #4206 from gudnimg/sd-card-menu-opt
...
optimisation: `menu_item == menu_line` is always true in `menu_item_sddir()` and `menu_item_sdfile()`
2023-09-13 07:49:43 +02:00