Commit Graph

6703 Commits

Author SHA1 Message Date
Yuri D'Elia b26c6af8e3 PF-build: cleanup whitespace 2022-12-17 15:05:43 +01:00
Yuri D'Elia b30ccbebaa PF-build: improve storage of dependencies
Use an unversioned root to store dependencies, so that they can be cached more easily.

Do not re-download archives if the build environment has already been set up.
2022-12-17 15:05:43 +01:00
Yuri D'Elia 5594408aac PF-build: Check for the correct python version in PF-build
We only use/support python3. Most distributions no longer ship an
unversioned "python" executable, so this check fails and recommends
broken behavior.
2022-12-17 15:05:38 +01:00
Yuri D'Elia 4dfedc62e3
Merge pull request #3834 from wavexx/travis_cache
CI: Cache dependencies
2022-12-17 15:01:07 +01:00
Yuri D'Elia 165b57399a CI: Cache dependencies
Attempt to cache dependencies with the travis cache. This avoids
redownloading avr-gcc for each stage of the pipeline.

This /might/ improve the download failures we're seeing recently,
although the travis cache is also networked.
2022-12-17 14:08:15 +01:00
Guðni Már Gilbert eb8ec9f8b9 If an old firmware is detected, make sure the protocol is actually stopped
The printer shouldn't continue endlessly asking for a version if an old MMU is detected.
Also if the protocol is supposed to be turned off, it
shouldn't be sending S0 queries.
2022-12-16 16:23:19 +01:00
Yuri D'Elia 9f3f0baa47 mmu: Use strncpy when possible
Since tmp is always null-terminated we can save some time compared to a
memcpy call.
2022-12-16 16:21:59 +01:00
Yuri D'Elia b3b9778341 mmu: Silence repeated S0 requests
Update "S0" CRC on replies so that the message is properly silenced.
2022-12-16 16:21:59 +01:00
Yuri D'Elia 78cf51274f mmu: Embed the newline in MMU2_ECHO_MSG/MMU2_ERROR_MSG
This allows to redefine both macros to silence debugging messages, since
we can't redefine the base SERIAL_ECHO.
2022-12-16 16:21:59 +01:00
Yuri D'Elia 5f2f6dde13 array<>::size should return constexpr expression
This allows to size buffers at compile time (matches c++11 behavior).
2022-12-16 16:21:59 +01:00
Guðni Már Gilbert 2e7c237a17 Cleanup: remove automatic parameter from unload_filament()
In M600 and M702, the Z-lift is taken care of outside this function
so it makes no sense to have a Z-lift within unload_filament()

Only exception to this is in the wizard, there I moved the Z-lift to
happen before we start heating the nozzle.

Change in memory:
Flash: -12 bytes
SRAM: 0 bytes
2022-12-16 16:20:09 +01:00
3d-gussner 090c72367d Minor Fix for PR2235
Shorten message to c=12 as some translation of `Yes/No` are 4 chars long
2022-12-16 16:10:15 +01:00
3d-gussner 9428064a9e Remove unused community translations 2022-12-16 16:06:31 +01:00
3d-gussner 100dc2934b Shorten French translation 2022-12-16 15:59:37 +01:00
3d-gussner 74545e2133 Fix `µ` character shown on translations 2022-12-16 15:59:37 +01:00
Yuri D'Elia c05ac535be TM: reset fan measuring state when changing speed
Ensure that fan checks are reset and use the new speed at each step of
the calibration.

This also gives extra time to the fan to ramp-up from a cold start,
when a fancheck could previously start right *after* the speed change.

Should fix #3791
2022-12-16 15:30:30 +01:00
Yuri D'Elia 4d87f65b68
Merge pull request #3443 from gudnimg/m109-turn-off-fan
Turn off print fan while resuming print from RAM
2022-12-12 15:20:20 +01:00
Yuri D'Elia d84e497007
Merge pull request #3805 from 3d-gussner/MK3_Fix_M862.4_strict
MK3: Fix `M862.4` with [strict] mode
2022-12-12 12:38:15 +01:00
Yuri D'Elia b4a061e70a
Merge pull request #3779 from gudnimg/fix_lcd_wizard_load_mmu
Don't show full screen message meant for single color setup
2022-12-10 11:27:48 +01:00
Guðni Már Gilbert 613ea290f5 Add a comment 2022-12-10 10:04:17 +00:00
Guðni Már Gilbert 9ed46df97f Don't show full screen message meant for single color setup
load_filament_to_nozzle will show a more precise full screen message when an MMU is used.
2022-12-10 10:00:58 +00:00
Guðni Már Gilbert 70451b6bd3 Turn off print fan while restoring print from RAM 2022-12-10 09:53:43 +00:00
3d-gussner 40cc6dcb6d
Merge pull request #3783 from leptun/enable_PRUSA_SN_all_variants
Allow "PRUSA SN" to print the SN in eeprom on all variants
2022-12-09 14:51:57 +01:00
3d-gussner 5d80e544ea
Merge pull request #3796 from Hauzman/MK3_Romanian_translation
Update Ro Translation
2022-12-09 14:48:14 +01:00
Guðni Már Gilbert 1e39012953
Merge pull request #3793 from gudnimg/PFW-1453
PFW-1453 Stop Print: Don't unload if FINDA is not triggered
2022-12-09 12:54:16 +00:00
Hauzman 19b6590095 Update Ro Translation 2022-12-09 11:00:34 +01:00
Yuri D'Elia 68c5cdce1c
Merge pull request #3780 from gudnimg/stop-print-optimisations
optimisation: Improve Stop Print menu
2022-12-08 19:41:52 +01:00
3d-gussner 25b5e00652
Merge pull request #86 from wavexx/simple_checks
Simplify firmware/gcode version comparisons
2022-12-08 19:04:59 +01:00
Yuri D'Elia a8b8085d22
Merge pull request #3811 from wavexx/build_drop_unused_option
cmake: Remove unused SECONDARY_LANGUAGES option
2022-12-08 18:51:53 +01:00
3d-gussner 92f2281b1a
Merge pull request #2335 from Panayiotis-git/MK3_NoBedHeating_onLoadUnload
@Panayiotis-git Thanks a lot!

Finally after 3 years 21 days your PR gets merged 🦕
2022-12-08 18:45:12 +01:00
Yuri D'Elia 5160e214ae
Merge branch 'MK3' into build_drop_unused_option 2022-12-08 18:32:32 +01:00
Yuri D'Elia a266ff3cdb
Merge pull request #3812 from wavexx/cmake_no_warning
cmake: Remove usage warning
2022-12-08 18:30:04 +01:00
Yuri D'Elia bfc44251c6 cmake: Remove usage warning
The cmake build system is effectively on-par (and a lot better in most
areas) compared to the old build system.

There's no need to warn developers anymore.
2022-12-08 13:41:51 +01:00
Yuri D'Elia 0cedb92ac6 Simplify firmware/gcode version comparisons 2022-12-07 18:59:29 +01:00
Yuri D'Elia 138725325a cmake: Remove unused SECONDARY_LANGUAGES option
The option SECONDARY_LANGUAGES is no longer being used.

cmake always allows en/multilang for all selected variants
by using the appropriate target now (ALL_ENGLISH).
2022-12-07 16:00:32 +01:00
3d-gussner 96e4881da5
Merge pull request #3794 from gudnimg/fix-m862-q
Fix undefined pointer in `M862.2 Q` and `M862.3 Q`
2022-12-07 13:04:45 +01:00
3d-gussner 72dc06c892
Merge pull request #3800 from 3d-gussner/MK3_Nozzle_change_community_translations
Update Nozzle change community translations
2022-12-06 16:01:27 +01:00
3d-gussner 96736c9dd1
Update lang/po/Firmware_no.po
Co-authored-by: OS-kar <104255741+OS-kar@users.noreply.github.com>
2022-12-06 14:39:59 +01:00
3d-gussner 6f5a67491c Fix `M862.4` with [strict] mode
Max 8 falvor versions
2022-12-06 13:18:52 +01:00
3d-gussner ac4185704d
Merge pull request #3801 from 3d-gussner/MK3_FARM_Nozzle_change_menu
Add Nozzle change menu to FARM mode under Settings

Approved by FARM team
2022-12-06 10:57:16 +01:00
3d-gussner 1df4871a8b Update Swedish translation 2022-12-06 09:21:13 +01:00
3d-gussner 1c9a3a6b25 Add Nozzle change menu to FARM mode under Settings 2022-12-05 18:22:18 +01:00
3d-gussner edecd6187d Update Nozzle change community translations 2022-12-05 18:10:25 +01:00
Guðni Már Gilbert a8fe71df8c PFW-1453 Stop Print: Don't unload if FINDA is not triggered 2022-12-05 16:45:57 +01:00
Alex Voinea 52965bd05d Avoid using global variables
Flash: -68B
RAM: -4B
2022-12-05 16:43:51 +01:00
Guðni Már Gilbert 4c27d057b8 Don't inline fSetMmuMode
Saves 8 bytes of flash
2022-12-05 16:43:51 +01:00
Guðni Már Gilbert 074b62361f Fix #3788
fSetMmuMode needs to be called
in order for the commands to work:
M862.2 Q
M862.3 Q
2022-12-05 16:43:51 +01:00
3d-gussner c42553dca6
Merge pull request #3799 from 3d-gussner/MK3_Shorten_French
Shorten French translation and fix build for other PRs
2022-12-05 15:15:28 +01:00
3d-gussner b516567b74 Shorten French translation 2022-12-05 12:18:46 +01:00
Panayiotis-git c75c81ce4f Do not heat the bed, on load/unload
If during a paused print, the preheat is canceled, keep the bed target temperature
Display bed temperatures only if bed is also heated
Remove not needed variables nTargetOld and nTargetBedOld from the mFilamentItem function
Define new Setting "HeatBedOnLoad" [Yes/No]
2022-12-04 19:26:34 +02:00