Commit Graph

7973 Commits

Author SHA1 Message Date
gudnimg cdb559040c PFW-1523 Refactor parsing quoted strings
My plan is to re-use this function in M79
in a later commit. The firmware doesn't
have a dedicated parser like Marlin 2.1
so this is my attempt to not duplicate the parsing of a quoted string in G-codes

Change in memory (MK3S+ Multilang):
Flash: -50 bytes
SRAM: 0 bytes
2023-11-04 17:45:14 +00:00
3d-gussner fca93b00e9
Merge pull request #4471 from gudnimg/issue-4470
MMU: Set PAUSED_FOR_USER state on MMU error screen
2023-10-31 08:36:53 +01:00
3d-gussner 3ffe7bf406
Merge pull request #4460 from gudnimg/PFW-1523
PFW-1523 Add a new timer for Prusa Link
2023-10-30 11:23:46 +01:00
3d-gussner 6be5cb3732
Merge pull request #4472 from gudnimg/mmu-menu-regression
Fix regression in MMU enable menu
2023-10-30 08:59:15 +01:00
gudnimg 8fcfdf31c4 PFW-1523 Implement M79 timer for PrusaLink
The idea is to have the host ping the printer periodically with a M79 to
enable certain features/UI. Using the usb_timer is not a good solution
for this as it depends on seeing a 'G' character

The LCD code, or whatever code is implementing the new functionality
will need to include host.h and check whether M79_timer_get_status()
returns 0 (timer not running) or 1 (timer is running).

I created a new file for the code host.cpp which we can use to expand
host related functionality and not clutter Marlin_main.cpp further.

Change in memory:
Flash: +104 bytes
SRAM: +5 bytes
2023-10-29 16:33:45 +00:00
gudnimg 645b11e643 Fix regression in MMU enable menu
Fixes a regression introduced in https://github.com/prusa3d/Prusa-Firmware/pull/4454
2023-10-29 16:17:03 +00:00
gudnimg 287e340117 MMU: Set PAUSED_FOR_USER state on MMU error screen
Setting this state notifies PrusaLink/PrusaConnect
that the printer is waiting for user input (attention).

Change in memory:
Flash: +12 bytes
SRAM: 0 bytes
2023-10-28 19:31:32 +00:00
Guðni Már Gilbert 3b10c6130e
Merge pull request #4466 from gudnimg/eeprom-optimisations
Optimise EEPROM access in a few places by reading/writing larger blocks
2023-10-27 21:12:13 +00:00
Guðni Már Gilbert 3297429ca7 TM: Optimise EEPROM read and writes 2023-10-25 17:37:04 +00:00
Guðni Már Gilbert e207945154 MBL: optimise EEPROM read/writes 2023-10-25 17:36:15 +00:00
Guðni Már Gilbert e7f56118d1
Merge pull request #4454 from gudnimg/mmu-sync
MMU: Backport code changes from 32-bit firmware
2023-10-23 06:31:06 +00:00
Guðni Már Gilbert 82e0124cb4 mmu: remove isErrorScreenRunning()
No change in memory
2023-10-19 18:32:42 +00:00
Guðni Már Gilbert d56f2bc57e mmu: remove obsolete EEPROM comments 2023-10-19 18:32:42 +00:00
Guðni Már Gilbert 62b90fde28 mmu: remove ResetOnExit
No change in memory
2023-10-19 18:32:42 +00:00
Guðni Már Gilbert 7b9e707709 mmu: add ResetCommunicationTimeoutAttempts
Adding __attribute__((noinline)) saves 14 bytes of flash

Change in memory:
Flash: +34 bytes
SRAM: 0 bytes
2023-10-19 18:32:42 +00:00
Guðni Már Gilbert ef33db9a71 mmu: add DisableMMUInSettings
power_on should not be modifying
EEPROM_MMU_ENABLED. The code is never
executed unless it's already been set.

Only disable EEPROM_MMU_ENABLED through Buttons::DisableMMU

Change in memory:
Flash: -18 bytes
SRAM: 0 bytes
2023-10-19 18:32:42 +00:00
Guðni Már Gilbert cd3372dc92 mmu: formatting 2023-10-19 18:32:41 +00:00
Guðni Már Gilbert 12a3051c50 mmu: Add CheckErrorScreenUserInput
Due to differences in 8-bit FW I had to implement two new get functions

* GetCommandInProgress
* GetLastErrorCode
2023-10-19 18:32:41 +00:00
3d-gussner 7bc7e7a7e8
Merge pull request #4448 from sarusani/nl_typo
Fix typo in Firmware_nl.po
2023-10-19 17:10:19 +02:00
3d-gussner abd8a43cfc
Merge pull request #4456 from leptun/update_diacritics
Update enabled diacritics
2023-10-19 17:08:53 +02:00
Alex Voinea 1528294450 Update enabled diacritics 2023-10-19 13:07:49 +02:00
3d-gussner 1f608dffcf
Merge pull request #4441 from 3d-gussner/MK3_French
PFW-1445: Update and shorten French
2023-10-19 09:04:20 +02:00
3d-gussner 5c416a1e47
Merge pull request #4452 from 3d-gussner/MK3_fix_cmake_3
PFW-1460 Part1: Fix PF-build.sh with new cmake
2023-10-19 09:03:32 +02:00
3d-gussner cd8daa88a3 Few more changes 2023-10-18 19:27:45 +02:00
3d-gussner 1f1743d7ad Not needed anymore thanks to @vintagepc 2023-10-18 18:02:56 +02:00
3d-gussner af13d0746e Updates by @ErwanAliasr1 2023-10-18 17:35:03 +02:00
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
3d-gussner 323f9aaf6c
Merge pull request #4440 from 3d-gussner/MK3_Spanish
Update Spanish diacritics
2023-10-17 15:15:36 +02:00
3d-gussner a5dbf4926d Few more changes 2023-10-17 10:29:56 +02:00
3d-gussner 0b999f1cc2 Thanks to @Ilovemyhous for the review
Changed all self test to selftest as this term is used in the help articles
2023-10-17 09:13:51 +02:00
3d-gussner c681dada5d Few more changes 2023-10-16 21:31:29 +02:00
3d-gussner fa056ceb43
Merge pull request #4449 from gudnimg/PFW-1542-v3
PFW-1542 Don't allow starting SD print if there is a thermal or fan error
2023-10-16 15:37:31 +02:00
Guðni Már Gilbert baba1e78c7 use uint16_t when writing to Timer/Counter4
Using uint16_t instead of uint32_t reduces code size
and probably is quicker to execute

OCR4C register is 2 bytes on ATmega2560
It's 1 byte on ATmega32u4 and ATmega16u4

Change in memory:
Flash: -80 bytes
SRAM: 0 bytes
2023-10-15 16:50:43 +00: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
sarusani baedd025d3 Fix typo 2023-10-14 23:00:56 +02:00
3d-gussner 6ef9e8d39c More updates 2023-10-14 15:02:44 +02:00
3d-gussner 07b7842212
Updates by @misan
Some minor changes for better fit on LCD
2023-10-14 12:57:06 +02: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
3d-gussner 3d7892f678
Merge pull request #4411 from arekm/arekm-pl-update
Polish translation update.
@arekm  Bardzo dziękuję za ten 🇵🇱 pull request
2023-10-13 08:50:21 +02:00
3d-gussner 47f5066fa4
Merge pull request #4442 from 3d-gussner/MK3_Italian
Update Italian
Reviewed by two users
2023-10-13 08:48:06 +02:00
3d-gussner 0b5cf404a6
Merge pull request #4432 from gudnimg/fix-compiler-warning-sha
Fix `FW_COMMIT_HASH` compiler warning
2023-10-11 17:40:17 +02:00
3d-gussner eb2cacc7de Update French
- Shorten messages
- Diacritics
2023-10-11 13:08:17 +02:00
3d-gussner a90086b28f
Merge pull request #4439 from leptun/update_charset
Add `’` and `Ê` to charset
2023-10-11 13:07:12 +02:00
3d-gussner 9148bed5b6 Update Italian 2023-10-11 13:00:45 +02:00
3d-gussner 512d7684b0 Update Spanish dicaritics 2023-10-11 12:56:11 +02:00
Alex Voinea b040538535
Add `’Ê` to charset 2023-10-11 12:31:23 +02:00
Guðni Már Gilbert fe893f8289 Fix git_describe_working_tree failing
The command
/usr/bin/git describe --abbrev=0 --dirty=-D --broken=-B

Was returning error code 128 and no output.

In the workflow file, specifying fetch-depth = 0, will make sure
to fetch all branches and tags. This seems to fix the issue.
2023-10-08 14:38:42 +00:00
Guðni Már Gilbert 69e06bac84 Use FW_COMMIT_HASH_UNKNOWN in CMakeLists.txt 2023-10-08 12:59:09 +00:00
Guðni Már Gilbert f6737d2fca optimisation: make dda_isteps_t an array
This way we can loop through it with a for-loop
and save some code size
2023-10-07 22:18:01 +00:00